1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
/*@@
@header cctk_Reduction.h
@date
@author Gabrielle Allen
@desc
Header file for using reduction operators
@enddesc
@@*/
/* $Id$ */
#ifndef _CCTK_REDUCTION_H_
#define _CCTK_REDUCTION_H_
#ifdef __cplusplus
extern "C" {
#endif
#define REDUCTION_OPERATOR_REGISTER_ARGLIST \
cGH *, \
int, \
int, \
int, \
void *, \
int, \
int *
#define REDUCTION_ARRAY_OPERATOR_REGISTER_ARGLIST \
cGH *GH, \
int proc, \
int nDims, \
int dims [], \
int nArrays, \
void *inArrays [], \
int inType, \
int nOutVals, \
void *outVals, \
int outType
int CCTK_Reduce(cGH *GH,
int proc,
int operation_handle,
int num_out_vals,
int type_out_vals,
void *out_vals,
int num_in_fields, ...);
int CCTK_ReductionHandle(const char *reduction);
int CCTK_RegisterReductionOperator(
void (*function)(REDUCTION_OPERATOR_REGISTER_ARGLIST),
const char *name);
int CCTK_ReductionArrayHandle(const char *reduction);
int CCTK_RegisterReductionArrayOperator(
void (*function)(REDUCTION_ARRAY_OPERATOR_REGISTER_ARGLIST),
const char *name);
int CCTK_ReduceLocalScalar (cGH *GH, int proc, int operation_handle,
void *inScalar, void *outScalar, int dataType);
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_ReduceArray(cGH *GH,
int proc,
int operation_handle,
int num_out_vals,
int type_out_vals,
void *out_vals,
int num_dims,
int num_in_arrays,
int type_in_arrays,
... );
#ifdef __cplusplus
}
#endif
#endif
|