diff options
author | knarf <knarf@cct.lsu.edu> | 2011-09-01 12:30:07 -0500 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2011-12-14 19:54:49 +0000 |
commit | b5dc2c37a7f8acf6bf4d9d7d3727440a57005a4d (patch) | |
tree | 00731bca00dc60407058da826af951333591b333 | |
parent | 689de5ca30aa3d460c6837ce5e04c84ff89b9350 (diff) |
CarpetIOHDF5: print more information for ID and termination checkpoint
CarpetIOHDF5 already prints the iteration and time for periodic
checkpoints. This patch adds this to both of initial data checkpoints
(also after restart) and termination checkpoints.
-rw-r--r-- | Carpet/CarpetIOHDF5/src/CarpetIOHDF5.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Carpet/CarpetIOHDF5/src/CarpetIOHDF5.cc b/Carpet/CarpetIOHDF5/src/CarpetIOHDF5.cc index d3b40c187..12c9a68ea 100644 --- a/Carpet/CarpetIOHDF5/src/CarpetIOHDF5.cc +++ b/Carpet/CarpetIOHDF5/src/CarpetIOHDF5.cc @@ -139,13 +139,16 @@ void CarpetIOHDF5_InitCheckpointingIntervals (CCTK_ARGUMENTS) void CarpetIOHDF5_InitialDataCheckpoint (CCTK_ARGUMENTS) { + DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; if (checkpoint and checkpoint_ID) { if (not CCTK_Equals (verbose, "none")) { CCTK_INFO ("---------------------------------------------------------"); - CCTK_INFO ("Dumping initial data checkpoint"); + CCTK_VInfo (CCTK_THORNSTRING, "Dumping initial checkpoint at " + "iteration %d, simulation time %g", + cctk_iteration, double(cctk_time)); CCTK_INFO ("---------------------------------------------------------"); } Checkpoint (cctkGH, CP_INITIAL_DATA); @@ -206,7 +209,8 @@ void CarpetIOHDF5_TerminationCheckpoint (CCTK_ARGUMENTS) if (not CCTK_Equals (verbose, "none")) { CCTK_INFO ("---------------------------------------------------------"); CCTK_VInfo (CCTK_THORNSTRING, "Dumping termination checkpoint at " - "iteration %d", cctk_iteration); + "iteration %d, simulation time %g", + cctk_iteration, double(cctk_time)); CCTK_INFO ("---------------------------------------------------------"); } Checkpoint (cctkGH, CP_EVOLUTION_DATA); |