aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Output.c3
-rw-r--r--src/Startup.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/Output.c b/src/Output.c
index 02464de..42f4333 100644
--- a/src/Output.c
+++ b/src/Output.c
@@ -61,7 +61,6 @@ int IOJpeg_OutputGH (const cGH *GH)
myGH = (ioJpegGH *) CCTK_GHExtension (GH, "IOJpeg");
- CheckSteerableParameters (myGH);
/* loop over all variables */
for (vindex = retval = 0; vindex < CCTK_NumVars (); vindex++)
@@ -251,7 +250,7 @@ static void CheckSteerableParameters (ioJpegGH *myGH)
/* how often to output */
i = myGH->out_every_default;
- myGH->out_every_default = out2D_every > 0 ? out2D_every : out_every;
+ myGH->out_every_default = out2D_every >= 0 ? out2D_every : out_every;
/* report if frequency changed */
if (myGH->out_every_default != i && ! CCTK_Equals (newverbose, "none"))
diff --git a/src/Startup.c b/src/Startup.c
index eee9631..05cd748 100644
--- a/src/Startup.c
+++ b/src/Startup.c
@@ -134,7 +134,7 @@ static void *IOJpeg_SetupGH (tFleshConfig *config, int conv_level, cGH *GH)
}
myGH->out_vars = strdup ("");
- myGH->out_every_default = 0;
+ myGH->out_every_default = out_every - 1;
/* Check whether "out2D_dir" was set.
If so take this dir otherwise default to "IO::outdir" */