From 408908b416b8015c488c55430f939e4ac6b7389d Mon Sep 17 00:00:00 2001 From: tradke Date: Tue, 11 Feb 2003 11:49:00 +0000 Subject: Fixed wrong GH extension name ("IOHDF5" instead of "IOFlexIO"). This caused termination checkpoints not being created. Closes PR CactusPUGHIO/1383. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@273 ebee0441-1374-4afa-a3b5-247f3ba15b9a --- src/DumpGH.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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); -- cgit v1.2.3