From 6ada70cc9219f5e5bae78ad2bade1fecf7b20867 Mon Sep 17 00:00:00 2001 From: tradke Date: Mon, 6 Jan 2003 22:51:14 +0000 Subject: 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 --- src/Startup.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- cgit v1.2.3