diff options
-rw-r--r-- | src/DumpGH.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/DumpGH.c b/src/DumpGH.c index 8ff7836..24d804e 100644 --- a/src/DumpGH.c +++ b/src/DumpGH.c @@ -141,7 +141,7 @@ void IOFlexIO_TerminationCheckpoint (const cGH *GH) DECLARE_CCTK_PARAMETERS - myGH = (const flexioGH *) CCTK_GHExtension (GH, "IOHDF5"); + myGH = CCTK_GHExtension (GH, "IOFlexIO"); if (checkpoint && checkpoint_on_terminate && myGH) { if (myGH->last_checkpoint_iteration < GH->cctk_iteration) @@ -239,7 +239,7 @@ void IOFlexIOi_DumpGHExtensions (const cGH *GH, IOFile file) /* get the handle for IOUtil extensions */ - ioUtilGH = (ioGH *) CCTK_GHExtension (GH, "IO"); + ioUtilGH = CCTK_GHExtension (GH, "IO"); itmp = CCTK_MainLoopIndex (); FLEXIO_ERROR (IOwriteAttribute (file, "main loop index",FLEXIO_INT4,1,&itmp)); @@ -308,7 +308,7 @@ void IOFlexIOi_DumpGHExtensions (const cGH *GH, IOFile file) @returntype int @returndesc - the accumulated return code from @seeroutine IOHDF5Util_DumpVar + the accumulated return code from @seeroutine IOFlexIO_DumpVar (should be 0 for success, or negative if some error occured), or -1 if checkpoint file could not be created @endreturndesc @@ -336,11 +336,11 @@ static int Checkpoint (const cGH *GH, int called_from) /* allocate the ring buffer for checkpoint filenames */ if (! cp_filenames) { - cp_filenames = (char **) calloc (abs (checkpoint_keep), sizeof (char *)); + cp_filenames = calloc (abs (checkpoint_keep), sizeof (char *)); } /* start the total timer */ - myGH = (flexioGH *) CCTK_GHExtension (GH, "IOFlexIO"); + myGH = CCTK_GHExtension (GH, "IOFlexIO"); if (myGH->print_timing_info) { CCTK_TimerStartI (myGH->timers[2]); @@ -348,7 +348,7 @@ static int Checkpoint (const cGH *GH, int called_from) /* get the base filename ... */ myproc = CCTK_MyProc (GH); - ioUtilGH = (const ioGH *) CCTK_GHExtension (GH, "IO"); + ioUtilGH = CCTK_GHExtension (GH, "IO"); IOUtil_PrepareFilename (GH, NULL, filename, called_from, myproc / ioUtilGH->ioproc_every, ioUtilGH->unchunked); |