diff options
Diffstat (limited to 'Carpet/CarpetIOHDF5/src/Checkpoint.cc')
-rw-r--r-- | Carpet/CarpetIOHDF5/src/Checkpoint.cc | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/Carpet/CarpetIOHDF5/src/Checkpoint.cc b/Carpet/CarpetIOHDF5/src/Checkpoint.cc index 04483c18a..1631c9765 100644 --- a/Carpet/CarpetIOHDF5/src/Checkpoint.cc +++ b/Carpet/CarpetIOHDF5/src/Checkpoint.cc @@ -19,7 +19,7 @@ #include "cctk_Version.h" extern "C" { -static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetIOHDF5/src/Checkpoint.cc,v 1.2 2004/08/18 16:02:56 tradke Exp $"; +static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetIOHDF5/src/Checkpoint.cc,v 1.1 2004/07/07 11:01:05 tradke Exp $"; CCTK_FILEVERSION(Carpet_CarpetIOHDF5_Checkpoint_cc); } @@ -44,9 +44,6 @@ namespace CarpetIOHDF5 using namespace std; using namespace Carpet; -// when was the last checkpoint written ? -static int last_checkpoint_iteration = -1; - static int Checkpoint (const cGH* const cctkGH, int called_from); static int DumpParametersGHExtentions (const cGH *cctkGH, int all, hid_t writer); @@ -104,37 +101,6 @@ int CarpetIOHDF5_EvolutionCheckpoint (const cGH* const cctkGH) } -int CarpetIOHDF5_TerminationCheckpoint (const cGH *const GH) -{ - int retval = 0; - DECLARE_CCTK_PARAMETERS - - - if (checkpoint && checkpoint_on_terminate) - { - if (last_checkpoint_iteration < GH->cctk_iteration) - { - CCTK_INFO ("---------------------------------------------------------"); - CCTK_VInfo (CCTK_THORNSTRING, "Dumping termination checkpoint at " - "iteration %d", GH->cctk_iteration); - CCTK_INFO ("---------------------------------------------------------"); - - retval = Checkpoint (GH, CP_EVOLUTION_DATA); - } - else if (verbose) - { - CCTK_INFO ("---------------------------------------------------------"); - CCTK_VInfo (CCTK_THORNSTRING, "Termination checkpoint already dumped " - "as last evolution checkpoint at iteration %d", - last_checkpoint_iteration); - CCTK_INFO ("---------------------------------------------------------"); - } - } - - return (retval); -} - - static int Checkpoint (const cGH* const cctkGH, int called_from) { DECLARE_CCTK_ARGUMENTS; @@ -336,9 +302,6 @@ static int Checkpoint (const cGH* const cctkGH, int called_from) } } - // save the iteration number of this checkpoint - last_checkpoint_iteration = cctkGH->cctk_iteration; - // free allocated resources free (tempname); free (filename); |