summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorhawke <hawke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2004-11-03 17:12:53 +0000
committerhawke <hawke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2004-11-03 17:12:53 +0000
commit34892f7fbefae30c20eaed247ec713c228de0a28 (patch)
treed449ff91e0874ed38c92969c8e0719ab6b584f65 /doc
parenta8dc34dd83669db188336cf68c37f25ebd17301f (diff)
Correct the argument list of ReduceGridArrays (add dest_processor).
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3892 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'doc')
-rw-r--r--doc/ReferenceManual/CCTKReference.tex40
1 files changed, 23 insertions, 17 deletions
diff --git a/doc/ReferenceManual/CCTKReference.tex b/doc/ReferenceManual/CCTKReference.tex
index 19992fbe..bd7bb3c4 100644
--- a/doc/ReferenceManual/CCTKReference.tex
+++ b/doc/ReferenceManual/CCTKReference.tex
@@ -561,15 +561,6 @@ from Fortran.
\item[\code{CCTK\_PARAMWARN}] [\pageref{CCTK-PARAMWARN}]
Prints a warning from parameter checking, and possibly stops the code
-\item[\code{CCTK\_PointerTo}] [\pageref{CCTK-PointerTo}]
-\item[\code{CCTK\_ReduceGridArrays}] [\pageref{CCTK-ReduceGridArrays}]
- Reduces a list of local arrays (new grid array reduction API)
-
-\item[\code{CCTK\_ReduceLocalArrays}] [\pageref{CCTK-ReduceLocalArrays}]
- Reduces a list of local arrays (new local array reduction API)
- Returns the address of a variable passed in by reference
- from a Fortran routine
-
\item[\code{CCTK\_PrintGroup}] [\pageref{CCTK-PrintGroup}]
Prints a group name from its index
@@ -589,6 +580,15 @@ from Fortran.
Queries storage for a group given by its group index
+\item[\code{CCTK\_PointerTo}] [\pageref{CCTK-PointerTo}]
+\item[\code{CCTK\_ReduceGridArrays}] [\pageref{CCTK-ReduceGridArrays}]
+ Reduces a list of local arrays (new grid array reduction API)
+
+\item[\code{CCTK\_ReduceLocalArrays}] [\pageref{CCTK-ReduceLocalArrays}]
+ Reduces a list of local arrays (new local array reduction API)
+ Returns the address of a variable passed in by reference
+ from a Fortran routine
+
%\item[\code{CCTK\_Reduce}]
% [\pageref{CCTK-Reduce}]
% Perform a reduction operation using a registered operator
@@ -2875,16 +2875,16 @@ this structure.
\begin{Discussion}
The {\t cGroup} structure%%%
\footnote{%%%
- {\t cGroup} is is a {\t typedef} for a structure.
- It's defined in {\t "cctk\_Group.h"}, which is
- {\t #include}d by {\t "cctk.h"}.
- }%%%
+ {\t cGroup} is is a {\t typedef} for a structure.
+ It's defined in {\t "cctk\_Group.h"}, which is
+ {\t #include}d by {\t "cctk.h"}.
+ }%%%
{} contains (at least) the following members:%%%
\footnote{%%%
- Note that the members are {\bf not\/}
- guaranteed to be declared in the order
- listed here.
- }%%%
+ Note that the members are {\bf not\/}
+ guaranteed to be declared in the order
+ listed here.
+ }%%%
\begin{verbatim}
int grouptype; /* group type, as returned by CCTK_GroupTypeNumber() */
int vartype; /* variable type, as returned by CCTK_VarTypeNumber() */
@@ -7461,6 +7461,7 @@ communication can be done together.
#include "cctk.h"
int status = CCTK_ReduceGridArrays(const cGH *GH,
+ int dest_processor,
int local_reduce_handle,
int param_table_handle,
int N_input_arrays,
@@ -7474,6 +7475,7 @@ int status = CCTK_ReduceGridArrays(const cGH *GH,
\begin{verbatim}
call CCTK_ReduceGridArrays(status,
. GH,
+. dest_processor,
. local_reduce_handle,
. param_table_handle,
. N_input_arrays,
@@ -7483,6 +7485,7 @@ call CCTK_ReduceGridArrays(status,
. output_values)
integer status
CCTK_POINTER_TO_CONST GH
+integer dest_processor
integer local_reduce_handle
integer param_table_handle
integer N_input_arrays
@@ -7503,6 +7506,9 @@ CCTK_POINTER output_values(M_output_values)
\begin{Parameter}{cctkGH ($\ne$ NULL)}
Pointer to a valid Cactus grid hierarchy.
\end{Parameter}
+\begin{Parameter}{dest\_processor}
+The destination processor. $-1$ will distribute the result to all processors.
+\end{Parameter}
\begin{Parameter}{local\_reduce\_handle}
Handle to the local reduction operator as returned by \newline
\code{CCTK\_LocalArrayReductionHandle()}. It is the caller's responsibility