aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@0888f3d4-9f52-45d2-93bc-d00801ff5e46>2002-04-19 08:36:24 +0000
committertradke <tradke@0888f3d4-9f52-45d2-93bc-d00801ff5e46>2002-04-19 08:36:24 +0000
commitbc3503172ce53e24961101082aca66136b195b78 (patch)
treecc2309fa2a5c6ab78d61718d445e781a126dfb2d
parent593faf37a6a9e268e9cfeff6d8e58fb5151c8347 (diff)
Bugfix in parameter evaluation: if IOStreamedHDF5::out*_every was set to 0 it
would default to IO::out_every (instead of disabling IOStreamedHDF5 output). git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOStreamedHDF5/trunk@80 0888f3d4-9f52-45d2-93bc-d00801ff5e46
-rw-r--r--src/Output.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/Output.c b/src/Output.c
index 1942a77..6e7e6f1 100644
--- a/src/Output.c
+++ b/src/Output.c
@@ -311,9 +311,9 @@ static void CheckSteerableParameters (ioStreamedHDF5GH *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)
{
@@ -333,12 +333,7 @@ static void CheckSteerableParameters (ioStreamedHDF5GH *myGH)
{
myGH->out_every = *(const CCTK_INT *)
CCTK_ParameterGet ("out_every",
- CCTK_ImplementationThorn ("IO"),
- &type);
- if (myGH->out_every == 0)
- {
- myGH->out_every = -1;
- }
+ CCTK_ImplementationThorn ("IO"), NULL);
}
/* re-parse the 'IOStreamedHDF5::out_vars' parameter if it was changed */