diff options
author | hinder <hinder@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2012-07-06 15:15:52 +0000 |
---|---|---|
committer | hinder <hinder@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2012-07-06 15:15:52 +0000 |
commit | d7190398513e1781e3b99b70baf2661d5a5ffb6a (patch) | |
tree | 88fb09e0deeb8f8198aae176aba174cc227c55d5 /doc | |
parent | 5890fa36427bdea8efe70079e3cd1e5612312e77 (diff) |
CCTKReference.tex: Add information on vector variables to CCTK_VarIndex
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4842 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ReferenceManual/CCTKReference.tex | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/ReferenceManual/CCTKReference.tex b/doc/ReferenceManual/CCTKReference.tex index 0dc7c0fc..c3400887 100644 --- a/doc/ReferenceManual/CCTKReference.tex +++ b/doc/ReferenceManual/CCTKReference.tex @@ -12478,6 +12478,8 @@ The name of the variable. The variable name should be the given in its fully qualified form, that is \code{<implementation>::<variable>} for a public or protected variable, and \code{<thornname>::<variable>} for a private variable. +For vector variables, the zero-based component index should be included +in square brackets after the variable name. \end{Discussion} %\begin{SeeAlsoSection} @@ -12500,11 +12502,13 @@ memory allocation failed \begin{Example}{C} \begin{verbatim} index = CCTK_VarIndex("evolve::phi"); +index = CCTK_VarIndex("evolve::vect[0]"); \end{verbatim} \end{Example} \begin{Example}{Fortran} \begin{verbatim} call CCTK_VarIndex(index,"evolve::phi") +call CCTK_VarIndex(index,"evolve::vect[0]") \end{verbatim} \end{Example} \end{ExampleSection} |