From 078a81333ccaf63541af440a357fcc4da80655d3 Mon Sep 17 00:00:00 2001 From: tradke Date: Wed, 16 Jun 2004 18:31:41 +0000 Subject: 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 --- src/Startup.c | 18 +++++++++--------- 1 file 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); } -- cgit v1.2.3