changes.
[IRC.git] / Robust / src / Benchmarks / oooJava / tracking / IXLR.java
index a70be64b51193a56093180968a598d0bb035869a..e077d600f0a35e6a94ccdd4f12675dc52bf5baca 100644 (file)
@@ -15,18 +15,21 @@ public class IXLR {
     /* id indicating the piece # */
     int m_id;  
     int m_range;
+    int m_pnum;
     
     /* constructor */
     public IXLR(int id,
                 int range,
                 float[] data,
                 int rows,
-                int cols) {
+                int cols,
+                int pnum) {
       this.m_id = id;
       this.m_range = range;
       this.m_image = data;
       this.m_rows = rows;
       this.m_cols = cols;
+      this.m_pnum = pnum;
     }
     
     public int getId() {
@@ -71,6 +74,9 @@ public class IXLR {
       
       this.m_rows_rs = this.m_id * this.m_range;
       this.m_rows_re = (this.m_id + 1) * this.m_range;
+      if(this.m_id == this.m_pnum - 1) {
+        this.m_rows_re = rows;
+      }
       this.m_cols_r = cols;
       result=this.m_result=new float[(this.m_rows_re-this.m_rows_rs)*this.m_cols_r];