aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorallen <allen@bfcf8e34-485d-4d46-a995-1fd6fa6fb178>2001-05-10 17:14:10 +0000
committerallen <allen@bfcf8e34-485d-4d46-a995-1fd6fa6fb178>2001-05-10 17:14:10 +0000
commit507de6c408650794864d2c27eab19137dec439f3 (patch)
tree7742268ab5827f993452ce1e7c69f8102191a0f9
parent494df8b973070d84cc227da3c70e4d0c24f9e085 (diff)
New timelevel indexing
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IsoSurfacer/trunk@46 bfcf8e34-485d-4d46-a995-1fd6fa6fb178
-rw-r--r--src/IsoSurfacer.c5
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");