From a99469e7e69ea88f81b68514f56d3487d7cfa0c0 Mon Sep 17 00:00:00 2001 From: schnetter Date: Mon, 12 May 2008 21:01:39 +0000 Subject: Add new parameter IO::checkpoint_every_walltime_hours git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@259 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a --- doc/documentation.tex | 9 +++++++-- param.ccl | 5 +++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/documentation.tex b/doc/documentation.tex index edb97a4..a391323 100644 --- a/doc/documentation.tex +++ b/doc/documentation.tex @@ -412,9 +412,14 @@ parameters. The most important ones are: \begin{itemize} \item {\tt IO::checkpoint\_every} (steerable)\\ specifies how often to write a evolution checkpoint in terms of iteration - number + number. + \item {\tt IO::checkpoint\_every\_walltime\_hours} (steerable)\\ + specifies how often to write a evolution checkpoint in terms of + wall time. Checkpointing will be triggered if either of these + conditions is met. \item {\tt IO::checkpoint\_next} (steerable)\\ - triggers a checkpoint at the end of the current iteration; This flag will be reset afterwards. + triggers a checkpoint at the end of the current iteration. This + flag will be reset afterwards. \item {\tt IO::checkpoint\_ID}\\ triggers a checkpoint of initial data \item {\tt IO::checkpoint\_on\_terminate} (steerable)\\ diff --git a/param.ccl b/param.ccl index 2b931e1..443efb9 100644 --- a/param.ccl +++ b/param.ccl @@ -142,6 +142,11 @@ INT checkpoint_every "How often to checkpoint" STEERABLE = ALWAYS 1:* :: "Every so many iterations" -1:0 :: "Disable periodic checkpointing" } -1 +REAL checkpoint_every_walltime_hours "How often to checkpoint" STEERABLE = ALWAYS +{ + (0:* :: "After so much walltime has passed" + -1 :: "Disable periodic walltime checkpointing" +} -1 BOOLEAN checkpoint_on_terminate "Checkpoint after last iteration" STEERABLE = ALWAYS { } "no" -- cgit v1.2.3