diff options
author | schnetter <schnetter@ec5ace1c-6809-4267-9cad-ed2f0ecfe59c> | 2010-01-11 22:25:14 +0000 |
---|---|---|
committer | schnetter <schnetter@ec5ace1c-6809-4267-9cad-ed2f0ecfe59c> | 2010-01-11 22:25:14 +0000 |
commit | 571f4fec08bba4af5be3734ca515926325b729a7 (patch) | |
tree | fc725ac891e187cff24ad99f297ba0d899e285ce /schedule.ccl | |
parent | 6b4b7c39e9fb4d3763472b064edadb779ba408be (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 'schedule.ccl')
-rw-r--r-- | schedule.ccl | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/schedule.ccl b/schedule.ccl new file mode 100644 index 0000000..88f3c60 --- /dev/null +++ b/schedule.ccl @@ -0,0 +1,38 @@ +# Schedule definitions for thorn TerminationTrigger + +if (on_remaining_walltime > 0) +{ + STORAGE: watchminutes + + SCHEDULE TerminationTrigger_StartTimer AT wragh + { + LANG: C + } "Start timer" + + SCHEDULE TerminationTrigger_ResetMinutes AT post_recover_variables + { + LANG: C + OPTIONS: global + } "Reset Watchtime" + + SCHEDULE TerminationTrigger_CheckWalltime AT analysis + { + LANG: C + } "Check elapsed job walltime" +} + +if (termination_from_file) +{ + if (create_termination_file) + { + SCHEDULE TerminationTrigger_CreateFile AT wragh + { + LANG: C + } "Create termination file" + } + + SCHEDULE TerminationTrigger_CheckFile AT analysis + { + LANG: C + } "Check termination file" +} |