aboutsummaryrefslogtreecommitdiff
path: root/param.ccl
diff options
context:
space:
mode:
authortradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a>2006-05-11 14:20:34 +0000
committertradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a>2006-05-11 14:20:34 +0000
commitd74fb47b045f8660182e045779e81244f83710f1 (patch)
tree551c83f84205624ded4b3ac5b394f4c6ccd39a33 /param.ccl
parent783c8163b39f692cafd93fad715e9040937d7bfc (diff)
Introduce new boolean parameter IO::require_empty_output_directory
which can be used to test if IO::out_dir points to either a non-existing or empty directory at simulation startup. If this parameter is set to "yes" and an already existing IO::out_dir is found to have any contents (eg. output files from a previous simulation which was using the same output directory) Cactus will print an appropriate error message and abort, as opposed to continuing and (potentially by accident) overwriting existing files. The default for IO::require_empty_output_directory is "no". This applies patch http://www.cactuscode.org/old/pipermail/patches/2006-May/000168.html. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@239 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
Diffstat (limited to 'param.ccl')
-rw-r--r--param.ccl3
1 files changed, 3 insertions, 0 deletions
diff --git a/param.ccl b/param.ccl
index e8ee4b6..1471218 100644
--- a/param.ccl
+++ b/param.ccl
@@ -52,6 +52,9 @@ BOOLEAN print_timing_info "Print timing information on I/O operations." STEERABL
BOOLEAN new_filename_scheme "Use the new filename scheme for output files ?" STEERABLE = RECOVER
{
} "yes"
+BOOLEAN require_empty_output_directory "Require that IO::out_dir is empty at startup ?" STEERABLE = RECOVER
+{
+} "no"
BOOLEAN strict_io_parameter_check "Stop on errors while parsing I/O parameters from parameter file ?" STEERABLE = RECOVER
{
} "yes"