aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@eff87b29-5268-4891-90a3-a07138403961>2002-04-19 08:23:23 +0000
committertradke <tradke@eff87b29-5268-4891-90a3-a07138403961>2002-04-19 08:23:23 +0000
commit7a7576f739c42f4c2fbc099c6524446f48d05596 (patch)
treee0977bd25a9832329bf5b8652b2e62a3c068a3d8
parent2f37f315915fa083d0a4b3b80639d54aa6ff3239 (diff)
Bugfix in parameter evaluation: if IOJpeg::out2D_every was set to 0 it would
default to IO::out_every (instead of disabling IOJpeg output). git-svn-id: http://svn.cactuscode.org/arrangements/CactusIO/IOJpeg/trunk@62 eff87b29-5268-4891-90a3-a07138403961
-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" */