summaryrefslogtreecommitdiff
path: root/doc/UsersGuide/ThornWriters.tex
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-03-19 22:19:31 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-03-19 22:19:31 +0000
commitf14f1068e2250889a9969d46e076cb1bbb734739 (patch)
treeea8f8289982c6deb3aac62c25038a6306af6004a /doc/UsersGuide/ThornWriters.tex
parent2b332522178ac9c882696b1a24f3a435670abdf1 (diff)
Updated section on scheduling bins.
This closes PR Documentation/568. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2656 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'doc/UsersGuide/ThornWriters.tex')
-rw-r--r--doc/UsersGuide/ThornWriters.tex37
1 files changed, 20 insertions, 17 deletions
diff --git a/doc/UsersGuide/ThornWriters.tex b/doc/UsersGuide/ThornWriters.tex
index 4cf77323..13aeec2b 100644
--- a/doc/UsersGuide/ThornWriters.tex
+++ b/doc/UsersGuide/ThornWriters.tex
@@ -422,12 +422,8 @@ schedule <name> at <time bin> [other options]
SYNC: [group list]
} "A description"
\end{verbatim}
-where {\tt <name>} is the name of the routine, and
-
-\begin{Lentry}
-
-\item[{\tt <time bin>}] is one of
-(in the following the initial {\tt CCTK\_} is optional):
+where {\tt <name>} is the name of the routine, and {\tt <time bin>} is one of
+the following schedule bins (the {\tt CCTK\_} prefix is optional):
\begin{Lentry}
@@ -435,6 +431,9 @@ where {\tt <name>} is the name of the routine, and
For routines run before the grid hierachy is set up, for example function
registration.
+\item [{\tt CCTK\_RECOVER\_PARAMETERS}]
+When restarting Cactus from a checkpoint, routines scheduled at {\tt CCTK\_RECOVER\_PARAMETERS} are called to recover the parameters from the checkpoint file.
+
\item [{\tt CCTK\_PARAMCHECK}]
For routines which check parameter combinations, routines registered here
only have access to the grid size and the parameters.
@@ -451,6 +450,9 @@ Tasks which must be applied after initial data is created.
\item [{\tt CCTK\_RECOVER\_VARIABLES}]
For recovery of grid variables from a checkpoint.
+\item [{\tt CCTK\_POST\_RECOVER\_VARIABLES}]
+For functions which want to modify grid variables after recovery.
+
\item [{\tt CCTK\_CPINITIAL}]
For checkpointing initial data.
@@ -480,6 +482,18 @@ Cactus final shutdown routines.
%
\end{Lentry}
+The {\tt other options} allow finer grained control of the scheduling. It is
+possible to state that the routine must run {\tt BEFORE} or {\tt AFTER}
+another routine. It is also possible to schedule the routine under an
+alias name by using {\tt AS <alias\_name>}.
+
+\begin{Lentry}
+
+\item[{\tt LANG}]
+The {\tt LANG} keyword specifies the linkage of the scheduled routine
+which determines how to call it from the scheduler.
+C and Fortran linkage are possible here. C++ routines should be defined as
+{\tt extern "C"} and registered as {\tt LANG: C}.
\item[{\tt STORAGE}] The {\tt STORAGE} keyword specifies any groups for
which memory should be
@@ -503,19 +517,8 @@ provides the Flesh with more information about the behaviour of your code,
and in particular is a requirement for using a driver with adaptive mesh
refinement.
-\item[{\tt other options}]
-The `other options' allow finer grained control of the scheduling. It is
-possible to state that the routine must run {\tt BEFORE} or {\tt AFTER}
-another routine. It is also possible to schedule the routine under an
-alias name by using {\tt AS <alias\_name>}.
-
\end{Lentry}
-The {\tt LANG} keyword specifies the linkage of the scheduled routine
-which determines how to call it from the scheduler.
-C and Fortran linkage are possible here. C++ routines should be defined as
-{\tt extern "C"} and registered as {\tt LANG: C}.
-
As well as schedule blocks it's possible to embed C style {\tt if/else}
statements in the schedule.ccl.
These can be used to schedule things based upon the value of a parameter.