diff options
author | tradke <tradke@b589c3ab-70e8-4b4d-a09f-cba2dd200880> | 2002-04-19 08:29:14 +0000 |
---|---|---|
committer | tradke <tradke@b589c3ab-70e8-4b4d-a09f-cba2dd200880> | 2002-04-19 08:29:14 +0000 |
commit | 6ac9acb632a460716dea99f28e3e5cb5cec798b3 (patch) | |
tree | 5f23c853ba20ed5ebc7646e701725e2b12da424d /src/OutputInfo.c | |
parent | fcc32346de7a793060209a0fe959b366a3db3183 (diff) |
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
Diffstat (limited to 'src/OutputInfo.c')
-rw-r--r-- | src/OutputInfo.c | 8 |
1 files changed, 3 insertions, 5 deletions
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) |