summaryrefslogtreecommitdiff
path: root/src/include/cctk_Reduction.h
blob: 10a37fc5185297261a3e3534b52914498e652594 (plain)
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
 /*@@
   @header    cctk_Reduction.h
   @date      
   @author    Gabrielle Allen
   @desc 
   Header file for using reduction operators
   @enddesc 
 @@*/

/* $Id$ */


#ifndef _REDUCTION_H_
#define _REDUCTION_H_

#ifdef __cplusplus
extern "C" {
#endif

#define REGISTER_ARGLIST  \
	  cGH *,  \
          int,    \
          int,    \
          int,    \
          void *, \
          int,    \
          int *    

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)(REGISTER_ARGLIST),
				   const char *name);


#ifdef __cplusplus
	   }
#endif

#endif