From d7190398513e1781e3b99b70baf2661d5a5ffb6a Mon Sep 17 00:00:00 2001 From: hinder Date: Fri, 6 Jul 2012 15:15:52 +0000 Subject: 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 --- doc/ReferenceManual/CCTKReference.tex | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') 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{::} for a public or protected variable, and \code{::} 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} -- cgit v1.2.3