aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@4825ed28-b72c-4eae-9704-e50c059e567d>2002-04-19 08:34:38 +0000
committertradke <tradke@4825ed28-b72c-4eae-9704-e50c059e567d>2002-04-19 08:34:38 +0000
commit7109c2356053d465c8f920ff5fe9f82502200532 (patch)
tree1d05cc211d1a2c530d2a80ba966cfb7f4429745a
parent4f5f673c10484cbe50290ce6122e0294f1205f7f (diff)
Bugfix in parameter evaluation: if IOHDF5::out*_every was set to 0 it would
default to IO::out_every (instead of disabling IOHDF5 output). git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOHDF5/trunk@123 4825ed28-b72c-4eae-9704-e50c059e567d
-rw-r--r--src/Output.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Output.c b/src/Output.c
index 02ef16e..6b6ef2c 100644
--- a/src/Output.c
+++ b/src/Output.c
@@ -315,9 +315,9 @@ static void CheckSteerableParameters (ioHDF5GH *myGH)
/* How often to output */
- if (out_every > 0 || outHDF5_every > 0)
+ if (out_every >= 0 || outHDF5_every >= 0)
{
- if (out_every <= 0)
+ if (out_every < 0)
{
if (! user_was_warned)
{
@@ -338,10 +338,6 @@ static void CheckSteerableParameters (ioHDF5GH *myGH)
CCTK_ParameterGet ("out_every",
CCTK_ImplementationThorn ("IO"),
NULL);
- if (myGH->out_every == 0)
- {
- myGH->out_every = -1;
- }
}
/* re-parse the 'IOHDF5::out_vars' parameter if it was changed */