aboutsummaryrefslogtreecommitdiff
path: root/Carpet
diff options
context:
space:
mode:
authorbzink <>2004-06-02 14:52:00 +0000
committerbzink <>2004-06-02 14:52:00 +0000
commit814738e83b2234d7534a64a791eb187c47940830 (patch)
treeef3cd86886d51788bb379d1101da0a0f36e56895 /Carpet
parent4b776a517c2f736204598b8035ba35e4c53d8b88 (diff)
Removed a small bug.
darcs-hash:20040602145245-5b8bb-d645fef538d0296593ceae11f575d884bc92bd0c.gz
Diffstat (limited to 'Carpet')
-rw-r--r--Carpet/CarpetIOHDF5/src/iohdf5chckpt_recover.cc4
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;