From bc3503172ce53e24961101082aca66136b195b78 Mon Sep 17 00:00:00 2001 From: tradke Date: Fri, 19 Apr 2002 08:36:24 +0000 Subject: 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 --- src/Output.c | 11 +++-------- 1 file 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 */ -- cgit v1.2.3