diff options
author | tradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a> | 2003-02-10 15:03:55 +0000 |
---|---|---|
committer | tradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a> | 2003-02-10 15:03:55 +0000 |
commit | 69f7370cde0ded0c3713a4181bdc1106c413c960 (patch) | |
tree | 5192287faecda48596c43f7baab5a838879808b7 | |
parent | aa545ab68d23664e9da7b7e09a88fbbb5d3c23a5 (diff) |
Only schedule filereader routine if both filereader_ID_files and
filereader_ID_vars are set to a non-empty string.
This closes PR Cactus/1394.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@185 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
-rw-r--r-- | param.ccl | 6 | ||||
-rw-r--r-- | schedule.ccl | 2 |
2 files changed, 5 insertions, 3 deletions
@@ -1,4 +1,4 @@ -# Parameter definitions for thorn IOUtil +# Parameter definitione for thorn IOUtil # $Header$ ############################################################################# @@ -154,7 +154,9 @@ STRING filereader_ID_files "List of files to read in as initial data" STEERABLE } "" STRING filereader_ID_vars "List of variables to read in from the given initial data files" STEERABLE = RECOVER { - ".+" :: "Space-separated list of fully qualified variable/group names" + "all" :: "Read all variables contained in the initial data files" + ".+" :: "Space-separated list of fully qualified variable/group names" + "^$" :: "An empty string for not recovering initial data" } "all" BOOLEAN recover_and_remove "Remove checkpoint file after successful recovery ?" STEERABLE = RECOVER { diff --git a/schedule.ccl b/schedule.ccl index 9c4e95b..2093c25 100644 --- a/schedule.ccl +++ b/schedule.ccl @@ -14,7 +14,7 @@ if (! CCTK_Equals (recover, "no")) } "Checkpoint recovery routine" } -if (*filereader_ID_files) +if (*filereader_ID_files && *filereader_ID_vars) { schedule IOUtil_RecoverIDFromDatafiles at CCTK_RECOVER_VARIABLES after IOUtil_RecoverGH { |