aboutsummaryrefslogtreecommitdiff
path: root/src/OutputScalar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/OutputScalar.c')
-rw-r--r--src/OutputScalar.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/OutputScalar.c b/src/OutputScalar.c
index 9169821..20c2695 100644
--- a/src/OutputScalar.c
+++ b/src/OutputScalar.c
@@ -252,11 +252,9 @@ static void CheckSteerableParameters (iobasicGH *myGH)
/* how often to output */
out_old = myGH->outScalar_every;
- myGH->outScalar_every = out_every > 0 ? out_every : -1;
- if (outScalar_every > 0)
- {
- myGH->outScalar_every = outScalar_every;
- }
+ myGH->outScalar_every = outScalar_every >= 0 ? outScalar_every : out_every;
+
+ /* report if frequency changed */
if (myGH->outScalar_every != out_old && ! CCTK_Equals (newverbose, "none"))
{
if (myGH->outScalar_every > 0)