jacobi3d-sdag: minor bug fix
authorAbhinav S Bhatele <bhatele@illinois.edu>
Sun, 19 Dec 2010 09:49:52 +0000 (03:49 -0600)
committerAbhinav S Bhatele <bhatele@illinois.edu>
Sun, 19 Dec 2010 09:49:52 +0000 (03:49 -0600)
examples/charm++/jacobi3d-sdag/jacobi3d.C

index 33432ec8ec24c074ba6ce00f0245f27e4bada6f7..2a73a4800bc803c438fdc539b82443150e9f78d0 100644 (file)
@@ -50,7 +50,7 @@ int myrand(int numpes) {
 #define wrap_y(a)      (((a)+num_chare_y)%num_chare_y)
 #define wrap_z(a)      (((a)+num_chare_z)%num_chare_z)
 
-#define index(a,b,c)   ((a)+(b)*(blockDimX+2)+(c)*(blockDimX+2)*(blockDimZ+2))
+#define index(a,b,c)   ((a)+(b)*(blockDimX+2)+(c)*(blockDimX+2)*(blockDimY+2))
 
 #define MAX_ITER               26
 #define WARM_ITER              5