aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@b589c3ab-70e8-4b4d-a09f-cba2dd200880>2003-01-06 22:51:14 +0000
committertradke <tradke@b589c3ab-70e8-4b4d-a09f-cba2dd200880>2003-01-06 22:51:14 +0000
commit6ada70cc9219f5e5bae78ad2bade1fecf7b20867 (patch)
tree84993b215741d745920d997ff26a453a1813a3f8
parentb4d151d13b986a12d002de6621dda1ecb28e6250 (diff)
Initialize counters for how often to do output.
This closes PR CactusBase-1237. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOBasic/trunk@137 b589c3ab-70e8-4b4d-a09f-cba2dd200880
-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;