diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-09-14 09:14:35 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-09-14 09:14:35 +0000 |
commit | 8f86a04ea038837ae48b165469c9f8baf53e88de (patch) | |
tree | 23c17bcc4a0e1a8aa008d50c50f3ec72415ced35 /doc/UsersGuide | |
parent | c5b3b0e590810f4fb759245cc3c246a80a4750e7 (diff) |
Added text about macros for CCTK_DELTA_SPACE()
git-svn-id: http://svn.cactuscode.org/flesh/trunk@904 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'doc/UsersGuide')
-rw-r--r-- | doc/UsersGuide/ThornWriters.tex | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/doc/UsersGuide/ThornWriters.tex b/doc/UsersGuide/ThornWriters.tex index adb9e6bd..e5999a61 100644 --- a/doc/UsersGuide/ThornWriters.tex +++ b/doc/UsersGuide/ThornWriters.tex @@ -459,6 +459,7 @@ if(evolve_hydro) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{Naming Conventions for Source Files} +\label{nacofosofi} The make system uses file extensions to designate coding language. The following extensions are @@ -797,13 +798,12 @@ The Cactus variables which are passed through the macros used for this grid hierarchy \item {\tt cctk\_lsh} An array of {\tt cctk\_dim} integers with the local grid size on this processor -\item {\tt cctk\_delta\_time} A {\tt CCTK\_REAL} with the timestep +\item {\tt cctk\_delta\_time} A {\tt CCTK\_REAL} with the timestep \item {\tt cctk\_time} A {\tt CCTK\_REAL} with the current time \item {\tt cctk\_space} An array of {\tt cctk\_dim} {\tt 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 cctk\_iteration} Integer with the current iteration number \item {\tt cctkGH} A C pointer identifying the grid hierachy \end{itemize} @@ -830,7 +830,13 @@ The following variable is needed for grid refinement methods \item {\tt cctk\_levfac} The factor by which the local grid is refined with respect to the base grid. \end{itemize} - +The variables {\tt cctk\_delta\_space} and {\tt cctk\_delta\_time} +denote the grid spacings on the {\em base} grid. If you are using +a grid refinement method, you need yo calculate the grid spacings +on the grid you are on. There are Cactus macros provided for this, +with the syntax {\tt CCTK\_DELTA\_SPACE(dir)} and {\tt CCTK\_DELTA\_TIME} +for both C and Fortran. It is recommended that these macros are +always used to provide the grid spacings in your thorns. \subsection{Cactus Data Types} @@ -984,6 +990,15 @@ is a parallel unigrid driver. \end{Lentry} +\subsection{Commenting Source Code} + +Note that since most source files (see Section~\ref{nacofosofi} for exceptions) +pass through a C preprocessor, C style comments can be used in +Fortran code. C++ comments (that is //), should not be used, since +they indicate the string concatonation operator in Fortran. + +The Flesh and the Cactus thorns use {\tt grdoc} to document the code. + \subsection{IO} \label{sec:io} |