fix for dimension
authorGengbin Zheng <gzheng@h2ologin1.(none)>
Wed, 28 Mar 2012 07:11:03 +0000 (02:11 -0500)
committerGengbin Zheng <gzheng@h2ologin1.(none)>
Wed, 28 Mar 2012 07:11:03 +0000 (02:11 -0500)
src/util/CrayNid.c

index ce45e39854ae61d7ef859d8816509bf464b5945d..efb752d60ac6195eb1872210bcaacd0f1a7f1b90 100644 (file)
@@ -169,9 +169,9 @@ void getDimension(int maxnid, int *xdim, int *ydim, int *zdim)
       if (y>*ydim) *ydim = y;
       if (z>*zdim) *zdim = z;
   }
-  *xdim++;
-  *ydim++;
-  *zdim++;
+  *xdim = *xdim+1;
+  *ydim = *ydim+1;
+  *zdim = *zdim+1;
 }
 
 #endif /* XT3_TOPOLOGY || XT4_TOPOLOGY || XT5_TOPOLOGY */