aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@b589c3ab-70e8-4b4d-a09f-cba2dd200880>1999-10-25 02:54:37 +0000
committertradke <tradke@b589c3ab-70e8-4b4d-a09f-cba2dd200880>1999-10-25 02:54:37 +0000
commit14e3d438b8472cc03acc4e2611490ae6880d1fe6 (patch)
tree65a38e407d199c9b1e5176cbe9a607949f450166
parent1bf05583b74dfaf12aabcb24b9eb4db0d574a507 (diff)
Prevent Info_every and Scalar_every to accept a value of 0 from IO::out_every.
Caused division by zero otherwise ! git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOBasic/trunk@12 b589c3ab-70e8-4b4d-a09f-cba2dd200880
-rw-r--r--src/GHExtension.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GHExtension.c b/src/GHExtension.c
index 6244ece..3cfaa02 100644
--- a/src/GHExtension.c
+++ b/src/GHExtension.c
@@ -49,11 +49,11 @@ int IOBasic_InitGH (cGH *GH)
myGH->filenameListScalar = NULL;
/* How often to output */
- myGH->infoevery = out_every;
+ myGH->infoevery = out_every > 0 ? out_every : -1;
if (outInfo_every > 0)
myGH->infoevery = outInfo_every;
- myGH->Scalarevery = out_every;
+ myGH->Scalarevery = out_every > 0 ? out_every : -1;
if (outScalar_every > 0)
myGH->Scalarevery = outScalar_every;