From 7a7576f739c42f4c2fbc099c6524446f48d05596 Mon Sep 17 00:00:00 2001 From: tradke Date: Fri, 19 Apr 2002 08:23:23 +0000 Subject: 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 --- src/Output.c | 3 +-- src/Startup.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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" */ -- cgit v1.2.3