aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschnetter <schnetter@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a>2008-05-12 21:01:39 +0000
committerschnetter <schnetter@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a>2008-05-12 21:01:39 +0000
commita99469e7e69ea88f81b68514f56d3487d7cfa0c0 (patch)
treec12b659a58c470d21e9ee87deefc67e8edb30552
parentd5056c847b895a281f2f256cf9f758cbb247d488 (diff)
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
-rw-r--r--doc/documentation.tex9
-rw-r--r--param.ccl5
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"