diff options
author | tradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 2001-05-10 22:18:39 +0000 |
---|---|---|
committer | tradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 2001-05-10 22:18:39 +0000 |
commit | 351835b8684284206c0ee60c779f06b9cb321e89 (patch) | |
tree | 2fc934b179bf37d59d3f875ab43d60a69846766e /src/DumpGH.c | |
parent | a6b5767c1d18fabc9420d5a022d1049e10096038 (diff) |
Checkpoint all timelevels from 0 up to NumTimeLevels() - 1.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@196 ebee0441-1374-4afa-a3b5-247f3ba15b9a
Diffstat (limited to 'src/DumpGH.c')
-rw-r--r-- | src/DumpGH.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/DumpGH.c b/src/DumpGH.c index fef120b..38e4f8e 100644 --- a/src/DumpGH.c +++ b/src/DumpGH.c @@ -285,7 +285,7 @@ void IOFlexIO_DumpGH (cGH *GH, int called_from) char dumpfname [1024], tmpfname [1024]; IOFile iof; int vindex; - int timelevel, current_timelevel; + int timelevel; int *old_downsample; int old_out_single; ioGH *ioUtilGH; @@ -391,14 +391,12 @@ void IOFlexIO_DumpGH (cGH *GH, int called_from) if (verbose) CCTK_VInfo (CCTK_THORNSTRING, " %s", CCTK_VarName (vindex)); - /* get the first and last (= current) timelevel to dump */ - current_timelevel = CCTK_NumTimeLevelsFromVarI (vindex) - 1; - timelevel = current_timelevel > 0 ? 1 : 0; - - /* now dump all timelevels */ - while (timelevel <= current_timelevel) + /* now dump all timelevels, if there is more than one timelevel + we don't dump the oldest */ + for (timelevel = 0; timelevel < CCTK_NumTimeLevelsFromVarI (vindex); + timelevel++) { - IOFlexIO_DumpVar (GH, vindex, timelevel++, iof); + IOFlexIO_DumpVar (GH, vindex, timelevel, iof); } } /* end of loop over all variables */ |