diff options
Diffstat (limited to 'src/OutputScalar.c')
-rw-r--r-- | src/OutputScalar.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/OutputScalar.c b/src/OutputScalar.c index 663dbeb..1281cff 100644 --- a/src/OutputScalar.c +++ b/src/OutputScalar.c @@ -310,7 +310,7 @@ static void CheckSteerableParameters (iobasicGH *myGH) { int i, num_vars, out_old; int times_set; - char *fullname, *msg; + char *fullname, *msg, *oldmsg; static int outScalar_vars_lastset = -1; DECLARE_CCTK_PARAMETERS @@ -342,8 +342,9 @@ static void CheckSteerableParameters (iobasicGH *myGH) CCTK_TraverseString (outScalar_vars, SetOutputFlag, myGH->do_outScalar, CCTK_GROUP_OR_VAR); - if (CCTK_Equals (newverbose, "standard") || - CCTK_Equals (newverbose, "full")) + if (myGH->outScalar_every && + (CCTK_Equals (newverbose, "standard") || + CCTK_Equals (newverbose, "full"))) { msg = NULL; for (i = 0; i < num_vars; i++) @@ -357,7 +358,9 @@ static void CheckSteerableParameters (iobasicGH *myGH) } else { - Util_asprintf (&msg, "%s %s", msg, fullname); + oldmsg = msg; + Util_asprintf (&msg, "%s %s", oldmsg, fullname); + free (oldmsg); } free (fullname); } |