diff options
author | tradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 2002-09-04 08:24:24 +0000 |
---|---|---|
committer | tradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 2002-09-04 08:24:24 +0000 |
commit | 7b142428841c58425487c2b1520ec22ee7a30b84 (patch) | |
tree | 6b0db2fa4c328e631380e1aa3f205d5f0e5f5b6b /src | |
parent | 83ed20c9b68d4caf0ad2abbf2a995073279e07eb (diff) |
During checkpointing, also check individual timelevels if they have storage
assigned. This closes PR BetaThorns/1224.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@263 ebee0441-1374-4afa-a3b5-247f3ba15b9a
Diffstat (limited to 'src')
-rw-r--r-- | src/DumpGH.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/DumpGH.c b/src/DumpGH.c index ac50d7e..df1cc4c 100644 --- a/src/DumpGH.c +++ b/src/DumpGH.c @@ -443,9 +443,10 @@ static int Checkpoint (const cGH *GH, int called_from) request->vindex < first_vindex + gdata.numvars; request->vindex++) { - /* loop over all timelevels of this variable */ + /* loop over all allocated timelevels of this variable */ for (request->timelevel = 0; - request->timelevel < gdata.numtimelevels; + request->timelevel < gdata.numtimelevels && + GH->data[request->vindex][request->timelevel]; request->timelevel++) { if (CCTK_Equals (verbose, "full")) |