aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@7842ec3a-9562-4be5-9c5b-06ba18f2b668>2002-09-04 08:24:25 +0000
committertradke <tradke@7842ec3a-9562-4be5-9c5b-06ba18f2b668>2002-09-04 08:24:25 +0000
commit25a87b8b5898116a6cd5790bf8698a1d64dc7476 (patch)
tree8db4fe2b48f6bd69000cdd9ac31b7988f5377453
parent256b0260f70fc2751063619389557ed9d94ee4ba (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/IOHDF5Util/trunk@77 7842ec3a-9562-4be5-9c5b-06ba18f2b668
-rw-r--r--src/DumpUtils.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/DumpUtils.c b/src/DumpUtils.c
index 4023dd2..182f063 100644
--- a/src/DumpUtils.c
+++ b/src/DumpUtils.c
@@ -128,9 +128,10 @@ int IOHDF5Util_DumpGH (const cGH *GH, const int *timers, hid_t file)
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") && file >= 0)