aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/DumpGH.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/DumpGH.c b/src/DumpGH.c
index eef4e80..32a2eeb 100644
--- a/src/DumpGH.c
+++ b/src/DumpGH.c
@@ -18,6 +18,7 @@
#include "CactusBase/IOUtil/src/ioGH.h"
#include "CactusBase/IOUtil/src/ioutil_CheckpointRecovery.h"
#include "ioFlexGH.h"
+#include "CactusPUGH/PUGH/src/include/pugh.h"
#include <string.h>
#include <stdlib.h>
@@ -321,6 +322,7 @@ static int Checkpoint (const cGH *GH, int called_from)
cGroup gdata;
ioRequest *request;
flexioGH *myGH;
+ const pGH *pughGH;
const ioGH *ioUtilGH;
char *fullname;
static char **cp_filenames = NULL;
@@ -348,6 +350,7 @@ static int Checkpoint (const cGH *GH, int called_from)
/* get the base filename ... */
myproc = CCTK_MyProc (GH);
+ pughGH = PUGH_pGH (GH);
ioUtilGH = CCTK_GHExtension (GH, "IO");
IOUtil_PrepareFilename (GH, NULL, filename, called_from,
myproc / ioUtilGH->ioproc_every, ioUtilGH->unchunked);
@@ -444,7 +447,7 @@ static int Checkpoint (const cGH *GH, int called_from)
{
/* loop over all allocated timelevels of this variable */
for (request->timelevel = 0;
- request->timelevel < gdata.numtimelevels;
+ request->timelevel < PUGH_NumTimeLevels (pughGH, request->vindex)-1;
request->timelevel++)
{
if (CCTK_Equals (verbose, "full"))