aboutsummaryrefslogtreecommitdiff
path: root/src/IsoSurfacer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/IsoSurfacer.c')
-rw-r--r--src/IsoSurfacer.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/IsoSurfacer.c b/src/IsoSurfacer.c
index a14d09b..c1fb32c 100644
--- a/src/IsoSurfacer.c
+++ b/src/IsoSurfacer.c
@@ -182,21 +182,17 @@ static void computeIso(int index, cGH *GH, isosurfacerGH *myGH)
int nx,ny,nz;
CCTK_REAL *xcoords,*ycoords,*zcoords,*data;
int timelevel;
- timelevel = CCTK_NumTimeLevelsFromVarI (index);
+ timelevel = CCTK_NumTimeLevelsFromVarI (index)-1;
if(!myGH->RunIsoSurfacer) return; /* not running */
fullname = CCTK_FullName (index);
- if (timelevel > 0)
- timelevel--;
data = (CCTK_REAL *) GH->data [index][timelevel];
nx=GH->cctk_lsh[0]; ny=GH->cctk_lsh[1]; nz=GH->cctk_lsh[2];
/* get the data pointer to the current timelevel of GF X */
i = CCTK_CoordIndex (-1,"x","cart3d");
timelevel = CCTK_NumTimeLevelsFromVarI (i) - 1; /* first time... get proper timelevel */
- if (timelevel > 0)
- timelevel--;
xcoords = (CCTK_REAL *) CCTK_VarDataPtrI (GH, timelevel, i);
/* get the data pointer to the current timelevel of GF Y */
i = CCTK_CoordIndex (-1,"y","cart3d");