aboutsummaryrefslogtreecommitdiff
path: root/src/NewPUGHSlab.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/NewPUGHSlab.h')
-rw-r--r--src/NewPUGHSlab.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/NewPUGHSlab.h b/src/NewPUGHSlab.h
new file mode 100644
index 0000000..a531682
--- /dev/null
+++ b/src/NewPUGHSlab.h
@@ -0,0 +1,37 @@
+ /*@@
+ @header PUGHSlab.h
+ @date Sun 28 May 2000
+ @author Thomas Radke
+ @desc
+ Function declarations of thorn Hyperslab
+ @enddesc
+ @history
+ @endhistory
+ @@*/
+
+
+/* prototype of datatype conversion routines */
+typedef void (*PUGHSlab_conversion_fn) (void *hdata,
+ void *vdata,
+ unsigned int nelems);
+
+
+/* function prototypes */
+int NewHyperslab_GetLocalHyperslab (cGH *GH, int vindex, int vtimelvl,
+ int hdim, int htype, PUGHSlab_conversion_fn copy_fn,
+ const int global_startpoint [/*vdim*/],
+ const int directions [/*vdim*/],
+ const int lengths [/*hdim*/],
+ const int downsample_ [/*hdim*/],
+ void **hdata,
+ int hsize [/*hdim*/], int ghsize [/*hdim*/],
+ int hoffset [/*hdim*/]);
+int NewHyperslab_GetHyperslab (cGH *GH, int target_proc, int vindex, int vtimelvl,
+ int hdim, int htype, PUGHSlab_conversion_fn copy_fn,
+ const int global_startpoint [/*vdim*/],
+ const int directions [/*vdim*/],
+ const int lengths [/*hdim*/],
+ const int downsample_ [/*hdim*/],
+ void **hdata, int hsize [/*hdim*/]);
+
+PUGHSlab_conversion_fn PUGHSlab_GetDatatypeConversionFn (int vtype, int htype);