summaryrefslogtreecommitdiff
path: root/doc/ReferenceManual
diff options
context:
space:
mode:
authorjthorn <jthorn@17b73243-c579-4c4c-a9d2-2d5706c11dac>2005-03-18 07:27:18 +0000
committerjthorn <jthorn@17b73243-c579-4c4c-a9d2-2d5706c11dac>2005-03-18 07:27:18 +0000
commit15c72811e63952a48f5c5c1ea5a9a0e6798474a8 (patch)
treea0d11109e75ac85a5bcaa6acb39629af26d028bb /doc/ReferenceManual
parenta5f6363a3d70fc0fabebcbaf75c97836de10e493 (diff)
CCTK_VarTypeSize() entry
* add -1 error return * add Fortran prototype * clarify wording in description git-svn-id: http://svn.cactuscode.org/flesh/trunk@4007 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'doc/ReferenceManual')
-rw-r--r--doc/ReferenceManual/CCTKReference.tex28
1 files changed, 18 insertions, 10 deletions
diff --git a/doc/ReferenceManual/CCTKReference.tex b/doc/ReferenceManual/CCTKReference.tex
index 1b800518..bd26f190 100644
--- a/doc/ReferenceManual/CCTKReference.tex
+++ b/doc/ReferenceManual/CCTKReference.tex
@@ -9274,7 +9274,15 @@ Provides variable type size in bytes from the variable type index
\begin{verbatim}
#include "cctk.h"
-int CCTK_VarTypeSize (int vtype);
+int CCTK_VarTypeSize(int vtype);
+\end{verbatim}
+\end{Synopsis}
+\begin{Synopsis}{Fortran}
+\begin{verbatim}
+#include "cctk.h"
+
+CCTK_INT size, vtype
+call CCTK_VarTypeSize(size, vtype);
\end{verbatim}
\end{Synopsis}
\end{SynopsisSection}
@@ -9286,17 +9294,17 @@ Variable type index.
\end{ParameterSection}
\begin{Discussion}
-This function returns the size in bytes of any of the Cactus variable
-types \code{CCTK\_INT}, \code{CCTK\_REAL}, \code{CCTK\_COMPLEX}, etc.
+Given a \verb|CCTK_VARIABLE_*| type code (e.g.~\verb|CCTK_VARIABLE_INT|,
+\verb|CCTK_VARIABLE_REAL|, \verb|CCTK_VARIABLE_COMPLEX|, etc.), this
+function returns the size in bytes of the corresponding data type
+(\code{CCTK\_INT}, \code{CCTK\_REAL}, \code{CCTK\_COMPLEX}, etc.).
\end{Discussion}
-%\begin{SeeAlsoSection}
-%\end{SeeAlsoSection}
-
-%\begin{ExampleSection}
-%\begin{Example}{C}
-%\end{Example}
-%\end{ExampleSection}
+\begin{ErrorSection}
+\begin{Error}{-1}
+\verb|vtype| is not one of the \verb|CCTK_VARIABLE_*| values.
+\end{Error}
+\end{ErrorSection}
\end{FunctionDescription}