diff options
Diffstat (limited to 'src/IsoSurfacer.c')
-rw-r--r-- | src/IsoSurfacer.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/IsoSurfacer.c b/src/IsoSurfacer.c index c1fb32c..a5837c6 100644 --- a/src/IsoSurfacer.c +++ b/src/IsoSurfacer.c @@ -181,8 +181,7 @@ static void computeIso(int index, cGH *GH, isosurfacerGH *myGH) int i,j; int nx,ny,nz; CCTK_REAL *xcoords,*ycoords,*zcoords,*data; - int timelevel; - timelevel = CCTK_NumTimeLevelsFromVarI (index)-1; + int timelevel=0; if(!myGH->RunIsoSurfacer) return; /* not running */ @@ -192,7 +191,7 @@ static void computeIso(int index, cGH *GH, isosurfacerGH *myGH) /* 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 */ + timelevel = 0; /* first time... get proper 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"); |