Bug fix in XTTorus.h
authorNikhil Jain <nikhil@illinois.edu>
Sun, 8 Apr 2012 02:35:40 +0000 (21:35 -0500)
committerNikhil Jain <nikhil@illinois.edu>
Sun, 8 Apr 2012 02:35:40 +0000 (21:35 -0500)
src/util/XTTorus.h

index 48748ca8f73a5173933b1a8a89ac057333345211..9a8e5049bf8096f0445d849ba47ffe45f6827571 100644 (file)
@@ -225,7 +225,7 @@ class XTTorusManager {
     }
 
     inline int coordinatesToRank(int x, int y, int z, int t) {
     }
 
     inline int coordinatesToRank(int x, int y, int z, int t) {
-      if(coords2pid[x+origin.x][y+origin.y][z+origin.z][t+origin.t] == -1 && ((t+origin.t)>=CmiNumCores)) {
+      if(coords2pid[x+origin.x][y+origin.y][z+origin.z][t+origin.t] == -1 && ((t+origin.t)>=CmiNumCores())) {
                                return coords2pid[x+origin.x][y+origin.y][z+origin.z][t+origin.t-CmiNumCores()]; 
                        } else {
                                return coords2pid[x+origin.x][y+origin.y][z+origin.z][t+origin.t];
                                return coords2pid[x+origin.x][y+origin.y][z+origin.z][t+origin.t-CmiNumCores()]; 
                        } else {
                                return coords2pid[x+origin.x][y+origin.y][z+origin.z][t+origin.t];