summaryrefslogtreecommitdiff
path: root/doc/UsersGuide
diff options
context:
space:
mode:
authoreschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac>2011-07-02 23:01:43 +0000
committereschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac>2011-07-02 23:01:43 +0000
commit435ea2cb05eca3264531dd81e9f4a4c906e77d59 (patch)
tree9a7aadfaf70dfce735ee390e34f369574bb738f1 /doc/UsersGuide
parentcb13436a3e0a57f82e3d014af0503487bffdda01 (diff)
Allow parameters in STORAGE specifications
Allow parameters in addition to integer constants in STORAGE specifications in schedule.ccl. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4706 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'doc/UsersGuide')
-rw-r--r--doc/UsersGuide/Appendices.tex10
-rw-r--r--doc/UsersGuide/ApplicationThorns.tex15
2 files changed, 21 insertions, 4 deletions
diff --git a/doc/UsersGuide/Appendices.tex b/doc/UsersGuide/Appendices.tex
index 8399b6a0..9f544369 100644
--- a/doc/UsersGuide/Appendices.tex
+++ b/doc/UsersGuide/Appendices.tex
@@ -837,7 +837,10 @@ The storage line includes the number of timelevels to activate storage
for, this number can be from 1 up to the maximum number or timelevels
for the group, as specified in the defining {\tt interface.ccl}
file. If the maximum number of timelevels is 1 (the default), this
-number may be omitted.
+number may be omitted. Alternatively \var{timelevels} can be the name of a
+parameter accessible to the thorn. The parameter name is the same as used in C
+routines of the thorn, fully qualified parameter names of the form
+\texttt{\var{thorn}::\var{parameter}} are not allowed.
The behaviour of an assignment statement is independent of its
position in the schedule file (so long as it is outside a schedule
@@ -913,7 +916,10 @@ schedule [GROUP] <\var{function name}|\var{group name}> AT|IN <\var{time}> \verb
Each group must specify how many timelevels to activate storage for,
from 1 up to the maximum number for the group as specified in the
defining {\tt interface.ccl} file. If the maximum is 1 (the default)
- this number may be omitted.
+ this number may be omitted. Alternatively \var{timelevels} can be the
+ name of a parameter accessible to the thorn. The parameter name is the
+ same as used in C routines of the thorn, fully qualified parameter names
+ of the form \texttt{\var{thorn}::\var{parameter}} are not allowed.
\item[{\tt TRIGGER}] List of grid variables or groups to be used as
triggers for causing an {\tt ANALYSIS} function or group to be
diff --git a/doc/UsersGuide/ApplicationThorns.tex b/doc/UsersGuide/ApplicationThorns.tex
index 447a1241..55561263 100644
--- a/doc/UsersGuide/ApplicationThorns.tex
+++ b/doc/UsersGuide/ApplicationThorns.tex
@@ -520,6 +520,10 @@ the number of timelevels of each group for which storage should be activated.
This number can range from one to the maximum number of timelevels for the group, as specified in the group definition in its \texttt{interface.ccl} file. If this maximum number is one, the timelevel specification can be omitted from the
\texttt{STORAGE} statement.
+Alternatively \var{timelevels} can be the name of a parameter accessible
+to the thorn. The parameter name is the same as used in C routines of the
+thorn, fully qualified parameter names of the form
+\texttt{\var{thorn}::\var{parameter}} are not allowed.
\item[\texttt{TRIGGERS}] \texttt{TRIGGERS} is used when the routine is
registered at \texttt{ANALYSIS}. This is a special time bin; a routine
@@ -1361,7 +1365,7 @@ A usual simple specification for a schedule declaration is
\begin{alltt}schedule <\var{function name}> AT <\var{schedule bin}>
\{
LANG: <\var{language}>
- [STORAGE: <\var{group}>,<\var{group}>...]
+ [STORAGE: <\var{group}>[[\var{timelevels}]],<\var{group}>[[\var{timelevels}]]...]
\} "\var{Description of function}"
\end{alltt}
@@ -1372,7 +1376,7 @@ The full specification for a schedule declaration is
[BEFORE|AFTER <\var{item}>|(<\var{item}> <\var{item}> ...)]
\{
LANG: <\var{language}>
- [STORAGE: <\var{group}>,<\var{group}>...]
+ [STORAGE: <\var{group}>[[\var{timelevels}]],<\var{group}>[[\var{timelevels}]]...]
[TRIGGER: <\var{group}>,<\var{group}>...]
[SYNC: <\var{group}>,<\var{group}>...]
[OPTIONS: <\var{option}>,<\var{option}>...]
@@ -1494,6 +1498,13 @@ and registered as \texttt{LANG: C}.
which memory should be allocated for the duration of the routine or
schedule group. The storage status reverts to its previous status
after completion of the routine or schedule group.
+Each group must specify how many timelevels to activate storage for,
+from 1 up to the maximum number for the group as specified in the
+defining {\tt interface.ccl} file. If the maximum is 1 (the default)
+this number may be omitted. Alternatively \var{timelevels} can be the
+name of a parameter accessible to the thorn. The parameter name is the
+same as used in C routines of the thorn, fully qualified parameter names
+of the form \texttt{\var{thorn}::\var{parameter}} are not allowed.
\item[\texttt{TRIGGER}]
This is only used for items scheduled at timebin \texttt{CCTK\_ANALYSIS}.
The item will only be executed if output is due for at least one