From 7b142428841c58425487c2b1520ec22ee7a30b84 Mon Sep 17 00:00:00 2001 From: tradke Date: Wed, 4 Sep 2002 08:24:24 +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/IOFlexIO/trunk@263 ebee0441-1374-4afa-a3b5-247f3ba15b9a --- src/DumpGH.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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")) -- cgit v1.2.3