aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@eff87b29-5268-4891-90a3-a07138403961>2004-06-16 18:31:41 +0000
committertradke <tradke@eff87b29-5268-4891-90a3-a07138403961>2004-06-16 18:31:41 +0000
commit078a81333ccaf63541af440a357fcc4da80655d3 (patch)
treeeffd2fbdb6e6e927a535e15a0e017f870665bfa8
parent72cd6d1eb4a143ef262e640e31f056ba4c8834db (diff)
Move initial check of IOJpeg parameters to the end of SetupGH().
git-svn-id: http://svn.cactuscode.org/arrangements/CactusIO/IOJpeg/trunk@102 eff87b29-5268-4891-90a3-a07138403961
-rw-r--r--src/Startup.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/Startup.c b/src/Startup.c
index 185e2a0..cd5f56a 100644
--- a/src/Startup.c
+++ b/src/Startup.c
@@ -122,15 +122,6 @@ static void *SetupGH (tFleshConfig *config, int conv_level, cGH *GH)
CCTK_RegisterIOMethodTimeToOutput (i, IOJpeg_TimeFor);
CCTK_RegisterIOMethodTriggerOutput (i, IOJpeg_TriggerOutput);
- myGH->stop_on_parse_errors = strict_io_parameter_check;
- if (! CCTK_Equals (verbose, "none"))
- {
- CCTK_INFO ("I/O Method 'IOJpeg' registered: output of 2D jpeg images of "
- "grid functions/arrays");
- }
- IOJpeg_CheckSteerableParameters (myGH);
- myGH->stop_on_parse_errors = 0;
-
numvars = CCTK_NumVars ();
myGH->out_every = malloc (numvars * sizeof (CCTK_INT));
myGH->out_last = malloc (numvars * sizeof (int));
@@ -171,5 +162,14 @@ static void *SetupGH (tFleshConfig *config, int conv_level, cGH *GH)
myGH->out_dir);
}
+ myGH->stop_on_parse_errors = strict_io_parameter_check;
+ if (! CCTK_Equals (verbose, "none"))
+ {
+ CCTK_INFO ("I/O Method 'IOJpeg' registered: output of 2D jpeg images of "
+ "grid functions/arrays");
+ }
+ IOJpeg_CheckSteerableParameters (myGH);
+ myGH->stop_on_parse_errors = 0;
+
return (myGH);
}