From 4cbde658050761ef2693c8fe99407b496a3f1163 Mon Sep 17 00:00:00 2001 From: lanfer Date: Sun, 28 Nov 1999 01:51:22 +0000 Subject: simple interfaces for local scalar/1d/2d/3d reductions git-svn-id: http://svn.cactuscode.org/flesh/trunk@1175 17b73243-c579-4c4c-a9d2-2d5706c11dac --- src/include/cctk_Reduction.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/include') diff --git a/src/include/cctk_Reduction.h b/src/include/cctk_Reduction.h index 63716314..2fb17dbc 100644 --- a/src/include/cctk_Reduction.h +++ b/src/include/cctk_Reduction.h @@ -56,13 +56,34 @@ int CCTK_RegisterReductionArrayOperator( void (*function)(REDUCTION_ARRAY_OPERATOR_REGISTER_ARGLIST), const char *name); +/* FIXME: old interface - should go */ int CCTK_ReduceLocalScalar (cGH *GH, int proc, int operation_handle, void *inScalar, void *outScalar, int dataType); + +/* FIXME: old interface - should go */ int CCTK_ReduceLocalArray1D (cGH *GH, int proc, int operation_handle, void *in_array1d, void *out_array1d, int num_in_array1d, int data_type); +int CCTK_ReduceLocScalar(cGH *GH, int proc, int operation_handle, + void *in_scalar, void *out_scalar, int data_type); + +int CCTK_ReduceLocArrayToArray1D(cGH *GH, int proc, int operation_handle, + void *in_array1d, void *out_array1d, + int num_in_array1d, + int data_type); + +int CCTK_ReduceLocArrayToArray2D(cGH *GH, int proc, int operation_handle, + void *in_array2d, void *out_array2d, + int xsize, int ysize, + int data_type); + +int CCTK_ReduceLocArrayToArray3D(cGH *GH, int proc, int operation_handle, + void *in_array3d, void *out_array3d, + int xsize, int ysize, int zsize, + int data_type); + int CCTK_ReduceArray(cGH *GH, int proc, -- cgit v1.2.3