aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a>2003-02-11 11:49:00 +0000
committertradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a>2003-02-11 11:49:00 +0000
commit408908b416b8015c488c55430f939e4ac6b7389d (patch)
tree12d728a6934a781bf2b625bc9bc1e7baf2b2744c /src
parentc602534059f65f00a82c69f70b0a8d009482845c (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/DumpGH.c12
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);