aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@eff87b29-5268-4891-90a3-a07138403961>2002-04-30 14:10:49 +0000
committertradke <tradke@eff87b29-5268-4891-90a3-a07138403961>2002-04-30 14:10:49 +0000
commitb4c1653f2660198eabb89c7030b4597769f23997 (patch)
tree613842cb6fa7fcdefd7f219046cc7392b5090247
parentdaf83e66153e9b05077624efdd9f48a37f3b3980 (diff)
Changed the default for 'IOJpeg::outdir' to be an empty string which then
causes IOJpeg's I/O method to use 'IO::outdir'. git-svn-id: http://svn.cactuscode.org/arrangements/CactusIO/IOJpeg/trunk@67 eff87b29-5268-4891-90a3-a07138403961
-rw-r--r--param.ccl4
-rw-r--r--src/Startup.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/param.ccl b/param.ccl
index 8fb43e9..d8dfc53 100644
--- a/param.ccl
+++ b/param.ccl
@@ -24,8 +24,8 @@ STRING out2D_vars "Variables to output as JPEGs" STEERABLE = ALWAYS
STRING out2D_dir "Name of IOJpeg output directory, overrides IO::outdir"
{
- .* :: "A regex which matches everything"
-} "."
+ .* :: "Any valid directory name, an empty string defaults to outdir"
+} ""
KEYWORD mode "Output mode to use" STEERABLE = ALWAYS
{
diff --git a/src/Startup.c b/src/Startup.c
index 05cd748..50b82ea 100644
--- a/src/Startup.c
+++ b/src/Startup.c
@@ -138,7 +138,7 @@ static void *IOJpeg_SetupGH (tFleshConfig *config, int conv_level, cGH *GH)
/* Check whether "out2D_dir" was set.
If so take this dir otherwise default to "IO::outdir" */
- if (CCTK_ParameterQueryTimesSet ("out2D_dir", CCTK_THORNSTRING) <= 0)
+ if (*out2D_dir == 0)
{
out2D_dir = outdir;
}