diff options
author | tradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 2001-05-10 22:25:32 +0000 |
---|---|---|
committer | tradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 2001-05-10 22:25:32 +0000 |
commit | 9df2b67b32cfe3dd40d1a9f2abcac2d056e6d0f6 (patch) | |
tree | 48225760b890c01dd12f400454740790005b5946 /src/DumpGH.c | |
parent | 351835b8684284206c0ee60c779f06b9cb321e89 (diff) |
For multiple timelevels, do not checkpoint the oldest.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@197 ebee0441-1374-4afa-a3b5-247f3ba15b9a
Diffstat (limited to 'src/DumpGH.c')
-rw-r--r-- | src/DumpGH.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/DumpGH.c b/src/DumpGH.c index 38e4f8e..6eb3b02 100644 --- a/src/DumpGH.c +++ b/src/DumpGH.c @@ -393,10 +393,14 @@ void IOFlexIO_DumpGH (cGH *GH, int called_from) /* 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++) + timelevel = CCTK_NumTimeLevelsFromVarI (vindex) - 1; + if (timelevel > 0) { - IOFlexIO_DumpVar (GH, vindex, timelevel, iof); + timelevel--; + } + while (timelevel >= 0) + { + IOFlexIO_DumpVar (GH, vindex, timelevel--, iof); } } /* end of loop over all variables */ |