aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Startup.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Startup.c b/src/Startup.c
index 069c0aa..22ab17f 100644
--- a/src/Startup.c
+++ b/src/Startup.c
@@ -142,6 +142,14 @@ static void *IOBasic_SetupGH (tFleshConfig *config, int conv_level, cGH *GH)
myGH->outInfo_last = (int *) malloc (2 * i * sizeof (int));
myGH->outScalar_last = myGH->outInfo_last + i;
+ /* initialize counters for how often to do output with a value different
+ to the current parameter values
+ this forces info output about periodic output */
+ myGH->outInfo_every = outInfo_every >= 0 ? outInfo_every : out_every;
+ myGH->outInfo_every--;
+ myGH->outScalar_every = outScalar_every >= 0 ? outScalar_every : out_every;
+ myGH->outScalar_every--;
+
memset (myGH->outInfo_last, -1, 2 * i * sizeof (int));
myGH->filenameListScalar = NULL;