From b4c1653f2660198eabb89c7030b4597769f23997 Mon Sep 17 00:00:00 2001 From: tradke Date: Tue, 30 Apr 2002 14:10:49 +0000 Subject: 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 --- param.ccl | 4 ++-- src/Startup.c | 2 +- 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; } -- cgit v1.2.3