aboutsummaryrefslogtreecommitdiff
path: root/param.ccl
diff options
context:
space:
mode:
authorschnetter <schnetter@ec5ace1c-6809-4267-9cad-ed2f0ecfe59c>2010-01-11 22:25:14 +0000
committerschnetter <schnetter@ec5ace1c-6809-4267-9cad-ed2f0ecfe59c>2010-01-11 22:25:14 +0000
commit571f4fec08bba4af5be3734ca515926325b729a7 (patch)
treefc725ac891e187cff24ad99f297ba0d899e285ce /param.ccl
parent6b4b7c39e9fb4d3763472b064edadb779ba408be (diff)
Add new thorn TerminationTrigger.
This thorn watches the elapsed walltime. If only n minutes are left before the some limit set by the user, it triggers termination of the simulation. Termination is also triggered if a special file with a special content exists. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/TerminationTrigger/trunk@2 ec5ace1c-6809-4267-9cad-ed2f0ecfe59c
Diffstat (limited to 'param.ccl')
-rw-r--r--param.ccl43
1 files changed, 43 insertions, 0 deletions
diff --git a/param.ccl b/param.ccl
new file mode 100644
index 0000000..faaf79c
--- /dev/null
+++ b/param.ccl
@@ -0,0 +1,43 @@
+# Parameter definitions for thorn TerminationTrigger
+
+PRIVATE:
+
+REAL on_remaining_walltime "When to trigger termination in MINUTES" STEERABLE = ALWAYS
+{
+ 0.0 :: "Don't trigger termination"
+ (0.0:* :: "So many minutes before your job walltime is over"
+} 0.0
+
+REAL max_walltime "Walltime in HOURS allocated for this job" STEERABLE = ALWAYS
+{
+ 0.0 :: "Don't trigger termination"
+ (0.0:* :: "Should be positive, right"
+} 0.0
+
+BOOLEAN termination_from_file "Use termination file; specified by termination_filename" STEERABLE = ALWAYS
+{
+} "no"
+
+BOOLEAN create_termination_file "Create an empty termination file at startup" STEERABLE = RECOVER
+{
+} "no"
+
+STRING termination_file "Termination file name (either full path or relative to IO::out_dir)" STEERABLE = ALWAYS
+{
+ "" :: "Termination file"
+} "/tmp/cactus_terminate"
+
+INT check_file_every "Check termination file every n timesteps" STEERABLE = ALWAYS
+{
+ 1:* :: ""
+} 1
+
+REAL output_remtime_every_minutes "Output remaining wall time every n minutes" STEERABLE = ALWAYS
+{
+ 0.0 :: "No output"
+ (0.0:* :: "Output"
+} 60.0
+
+SHARES: IO
+
+USES STRING out_dir