diff options
-rw-r--r-- | param.ccl | 12 | ||||
-rw-r--r-- | src/Startup.c | 4 |
2 files changed, 8 insertions, 8 deletions
@@ -25,14 +25,14 @@ INT out3D_every "How often to do 3D output, overrides out_every" STEERABLE = ALW #################### # Output directories #################### -STRING outdir2D "Name of IO 2D output directory, overrides outdir" +STRING outdir2D "Name of IO 2D output directory, overrides IO::outdir" { - .* :: "A regex which matches everything" -} "." -STRING outdir3D "Name of IO 3D output directory, overrides outdir" + .* :: "Any valid directory name, an empty string defaults to outdir" +} "" +STRING outdir3D "Name of IO 3D output directory, overrides IO::outdir" { - .* :: "A regex which matches everything" -} "." + .* :: "Any valid directory name, an empty string defaults to outdir" +} "" ########################## diff --git a/src/Startup.c b/src/Startup.c index 42cafce..ecddd20 100644 --- a/src/Startup.c +++ b/src/Startup.c @@ -258,7 +258,7 @@ static void *SetupGH (tFleshConfig *config, int conv_level, cGH *GH) /* check whether "outdir2D" and/or "outdir3D" were set. If so take these dirs otherwise default to "IO::outdir" */ - if (CCTK_ParameterQueryTimesSet ("outdir2D", CCTK_THORNSTRING) > 0) + if (*outdir2D) { myGH->outdir2D = strdup (outdir2D); } @@ -268,7 +268,7 @@ static void *SetupGH (tFleshConfig *config, int conv_level, cGH *GH) CCTK_ImplementationThorn ("IO")); } - if (CCTK_ParameterQueryTimesSet ("outdir3D", CCTK_THORNSTRING) > 0) + if (*outdir3D) { myGH->outdir = strdup (outdir3D); } |