aboutsummaryrefslogtreecommitdiff
path: root/src/NewPUGHSlab.h
blob: a61c6119a4509aac1b3726cc3f2dc5d35bdf131d (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
48
 /*@@
   @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[/* hdim * vdim */],
                                 const int lengths[/* hdim */],
                                 const int downsample_[/* hdim */],
                                 void **hdata,
                                 int hsize[/* hdim */],
                                 int hsize_global[/* hdim */],
                                 int hoffset_global[/* 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[/* hdim*vdim */],
                            const int lengths[/* hdim */],
                            const int downsample_[/* hdim */],
                            void **hdata,
                            int hsize[/* hdim */]);

PUGHSlab_conversion_fn PUGHSlab_GetDatatypeConversionFn (int vtype, int htype);