diff options
author | Thomas Radke <tradke@aei.mpg.de> | 2008-08-25 12:28:00 +0200 |
---|---|---|
committer | Thomas Radke <tradke@aei.mpg.de> | 2008-08-25 12:28:00 +0200 |
commit | 30f1c46a7f94d423bda65e04220015e0296e1347 (patch) | |
tree | 62e6dbae674805f13f84662a7168e9543900dccc | |
parent | 735c35bf2412bbcacc4057db00c52f7ecb0bada0 (diff) |
make sure that checkpoints are written at multiples of (<last-checkpoint-iteration> + IO::checkpoint_every)
-rw-r--r-- | Carpet/CarpetIOHDF5/src/CarpetIOHDF5.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Carpet/CarpetIOHDF5/src/CarpetIOHDF5.cc b/Carpet/CarpetIOHDF5/src/CarpetIOHDF5.cc index c70863069..39eb25342 100644 --- a/Carpet/CarpetIOHDF5/src/CarpetIOHDF5.cc +++ b/Carpet/CarpetIOHDF5/src/CarpetIOHDF5.cc @@ -143,7 +143,7 @@ void CarpetIOHDF5_EvolutionCheckpoint (CCTK_ARGUMENTS) bool const checkpoint_by_iteration = checkpoint_every > 0 and - iteration >= last_checkpoint_iteration + checkpoint_every; + iteration % (last_checkpoint_iteration + checkpoint_every) == 0; bool const checkpoint_by_walltime = checkpoint_every_walltime_hours > 0 and walltime >= last_checkpoint_walltime + checkpoint_every_walltime_hours; |