From 25a87b8b5898116a6cd5790bf8698a1d64dc7476 Mon Sep 17 00:00:00 2001 From: tradke Date: Wed, 4 Sep 2002 08:24:25 +0000 Subject: 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 --- src/DumpUtils.c | 5 +++-- 1 file 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) -- cgit v1.2.3