summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-12-18 10:21:33 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-12-18 10:21:33 +0000
commit8b6b44b9e1f56070073ad852aa41b453f3f65896 (patch)
tree17e8ebc8fb9ee25380f4fb847ef9271db0c81943 /doc
parent4bfaf89ca72fd897f14f7a53c22231ea5a554cb7 (diff)
Checking for non-valid case of coordinate direction = 0, and adding to
grdoc and docs Fixes Cactus/401 git-svn-id: http://svn.cactuscode.org/flesh/trunk@1974 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'doc')
-rw-r--r--doc/UsersGuide/FunctionReference.tex7
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/UsersGuide/FunctionReference.tex b/doc/UsersGuide/FunctionReference.tex
index cf149818..c5f43f5e 100644
--- a/doc/UsersGuide/FunctionReference.tex
+++ b/doc/UsersGuide/FunctionReference.tex
@@ -100,7 +100,7 @@ available from C, not all are currently available from Fortran.
\item[CCTK\_CoordIndex]
[\pageref{CoordIndex}]
- Give the grid variable index for a given coordinate name.
+ Give the grid variable index for a given coordinate.
\item[CCTK\_CoordRange]
[\pageref{CoordRange}]
@@ -888,12 +888,11 @@ The coordinate name is independent of the grid function name.
The coordinate name is independent of the grid variable name.
To find the index, the coordinate system name must be given, and either
the coordinate direction or the coordinate name. The coordinate name
-will be used if the coordinate direction is given as -1, otherwise the
-coordinate name will be used.
+will be used if the coordinate direction is given as less than or equal to zero, otherwise the coordinate name will be used.
\end{discussion}
\begin{examples}
\begin{tabular}{@{}p{3cm}cp{11cm}}
-\hfill {\bf C} && {\t index = CCTK\_CoordIndex(1,"xdir","cart3d")};
+\hfill {\bf C} && {\t index = CCTK\_CoordIndex(-1,"xdir","cart3d")};
\\
\hfill {\bf Fortran} && one = 1
\\