diff options
author | bzink <> | 2004-06-02 14:52:00 +0000 |
---|---|---|
committer | bzink <> | 2004-06-02 14:52:00 +0000 |
commit | 814738e83b2234d7534a64a791eb187c47940830 (patch) | |
tree | ef3cd86886d51788bb379d1101da0a0f36e56895 /Carpet | |
parent | 4b776a517c2f736204598b8035ba35e4c53d8b88 (diff) |
Removed a small bug.
darcs-hash:20040602145245-5b8bb-d645fef538d0296593ceae11f575d884bc92bd0c.gz
Diffstat (limited to 'Carpet')
-rw-r--r-- | Carpet/CarpetIOHDF5/src/iohdf5chckpt_recover.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Carpet/CarpetIOHDF5/src/iohdf5chckpt_recover.cc b/Carpet/CarpetIOHDF5/src/iohdf5chckpt_recover.cc index a0b599637..48a74189b 100644 --- a/Carpet/CarpetIOHDF5/src/iohdf5chckpt_recover.cc +++ b/Carpet/CarpetIOHDF5/src/iohdf5chckpt_recover.cc @@ -18,7 +18,7 @@ #include "cctk_Version.h" extern "C" { - static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetIOHDF5/src/iohdf5chckpt_recover.cc,v 1.30 2004/06/02 14:06:08 bzink Exp $"; + static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetIOHDF5/src/iohdf5chckpt_recover.cc,v 1.31 2004/06/02 16:52:45 bzink Exp $"; CCTK_FILEVERSION(Carpet_CarpetIOHDF5_iohdf5chckpt_recover_cc); } @@ -80,7 +80,7 @@ namespace CarpetIOHDF5 { // Test checkpoint_every, and adjust it. This is necessary until // recovery is more flexible. int every_full = pow(2.0,maxreflevels-1); - if ((checkpoint_every % every_full) != 0) { + if (checkpoint_every>0 && (checkpoint_every % every_full) != 0) { int every = (checkpoint_every / every_full + 1) * every_full; ostringstream outevery; outevery << every; |