From 6ac9acb632a460716dea99f28e3e5cb5cec798b3 Mon Sep 17 00:00:00 2001 From: tradke Date: Fri, 19 Apr 2002 08:29:14 +0000 Subject: Bugfix in parameter evaluation: if IOBasic::out*_every was set to 0 it would default to IO::out_every (instead of disabling IOBasic output). git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOBasic/trunk@122 b589c3ab-70e8-4b4d-a09f-cba2dd200880 --- src/OutputInfo.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/OutputInfo.c') diff --git a/src/OutputInfo.c b/src/OutputInfo.c index 16676e8..071f1a8 100644 --- a/src/OutputInfo.c +++ b/src/OutputInfo.c @@ -314,11 +314,9 @@ static void CheckSteerableParameters (iobasicGH *myGH) /* how often to output */ out_old = myGH->outInfo_every; - myGH->outInfo_every = out_every > 0 ? out_every : -1; - if (outInfo_every > 0) - { - myGH->outInfo_every = outInfo_every; - } + myGH->outInfo_every = outInfo_every >= 0 ? outInfo_every : out_every; + + /* report if frequency changed */ if (myGH->outInfo_every != out_old && ! CCTK_Equals (newverbose, "none")) { if (myGH->outInfo_every > 0) -- cgit v1.2.3