From b5dc2c37a7f8acf6bf4d9d7d3727440a57005a4d Mon Sep 17 00:00:00 2001 From: knarf Date: Thu, 1 Sep 2011 12:30:07 -0500 Subject: 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. --- Carpet/CarpetIOHDF5/src/CarpetIOHDF5.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Carpet/CarpetIOHDF5/src') 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); -- cgit v1.2.3