From 507de6c408650794864d2c27eab19137dec439f3 Mon Sep 17 00:00:00 2001 From: allen Date: Thu, 10 May 2001 17:14:10 +0000 Subject: New timelevel indexing git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IsoSurfacer/trunk@46 bfcf8e34-485d-4d46-a995-1fd6fa6fb178 --- src/IsoSurfacer.c | 5 ++--- 1 file 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"); -- cgit v1.2.3