diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2002-04-08 12:47:04 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2002-04-08 12:47:04 +0000 |
commit | c76acffd06f4ea0c578b753c22690c28eef3baca (patch) | |
tree | ac51da326e0fc472393e55483acd06d4c025b212 /doc | |
parent | 1505a0e49a662713ed04690ef5ad6af6018c8ec8 (diff) |
Document at which time bins you can use Cactus argument lists for routines
called by the scheduler.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2697 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'doc')
-rw-r--r-- | doc/UsersGuide/ThornWriters.tex | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/doc/UsersGuide/ThornWriters.tex b/doc/UsersGuide/ThornWriters.tex index a313379f..25906677 100644 --- a/doc/UsersGuide/ThornWriters.tex +++ b/doc/UsersGuide/ThornWriters.tex @@ -1302,9 +1302,9 @@ before compilation). \subsubsection{Variables} -Any routine using Cactus argument lists (for example all -routines called from the scheduler) should include at the -top of the file the header +Any routine using Cactus argument lists (for example all routines called from +the scheduler at time bins between {\t CCTK\_STARTUP} and {\t CCTK\_SHUTDOWN}) +should include at the top of the file the header \begin{verbatim} #include "cctk_Arguments.h" \end{verbatim} @@ -1326,6 +1326,10 @@ To pass the arguments to another routine in the same thorn use the macro {\tt CCTK\_PASS\_FTOF} in the calling routine, and again the macro {\tt CCTK\_ARGUMENTS} in the receiving routine. +Note that you cannot use Cactus argument lists in routines scheduled at the +{\t CCTK\_STARTUP} and {\t CCTK\_SHUTDOWN} time bins because at this time +no grid hierarchy exists. + \subsubsection{Parameters} @@ -1460,9 +1464,9 @@ the header file {\tt cctk.h} using the line \subsubsection{Variables} -Any routine using Cactus argument lists (for example all -routines called from the scheduler) should include at the -top of the file the header +Any routine using Cactus argument lists (for example all routines called from +the scheduler at time bins between {\t CCTK\_STARTUP} and {\t CCTK\_SHUTDOWN}) +should include at the top of the file the header \begin{verbatim} #include "cctk_Arguments.h" \end{verbatim} @@ -1485,6 +1489,10 @@ To pass the arguments to another routine in the same thorn use the macro {\tt CCTK\_PASS\_CTOC} in the calling routine, and again the macro {\tt CCTK\_ARGUMENTS} in the receiving routine. +Note that you cannot use Cactus argument lists in routines scheduled at the +{\t CCTK\_STARTUP} and {\t CCTK\_SHUTDOWN} time bins because at this time +no grid hierarchy exists. + \subsubsection{Parameters} @@ -1571,6 +1579,7 @@ Here, {\tt CCTK\_GFINDEX3D(cctkGH,i,j,k)]} expands to The Cactus variables which are passed through the macro {\tt CCTK\_ARGUMENTS} are \begin{Lentry} +\item [{\tt cctkGH}] A C pointer identifying the grid hierachy. \item [{\tt cctk\_dim}] An integer with the number of dimensions used for this grid hierarchy. \item [{\tt cctk\_lsh}] An array of {\tt cctk\_dim} integers @@ -1584,7 +1593,6 @@ The Cactus variables which are passed through the macro CCTK\_REAL}s with the grid spacing in each direction. \item [{\tt cctk\_nghostzones}] An array of {\tt cctk\_dim} integers with the number of ghostzones used in each direction. -\item [{\tt cctkGH}] A C pointer identifying the grid hierachy. %\item [{\tt cctk\_from}] The index value from which the user should start loops. %\item [{\tt cctk\_to}] ... end loops. %\item [{\tt cctk\_origin\_space}] The coordinates of the spatial origin? |