summaryrefslogtreecommitdiff
path: root/src/include/cctk_Reduction.h
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-07-30 13:12:54 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-07-30 13:12:54 +0000
commit08d345f1a8c59312367b102d37ce30ef2070ad31 (patch)
tree1aa71d16bbbc6c19a6aeb040bbd7f74ff191add9 /src/include/cctk_Reduction.h
parent911d72f4fc3e61a8faa523cdf5c6f4b37d5d0c33 (diff)
New include file names
git-svn-id: http://svn.cactuscode.org/flesh/trunk@833 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/cctk_Reduction.h')
-rw-r--r--src/include/cctk_Reduction.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/include/cctk_Reduction.h b/src/include/cctk_Reduction.h
new file mode 100644
index 00000000..10a37fc5
--- /dev/null
+++ b/src/include/cctk_Reduction.h
@@ -0,0 +1,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