summaryrefslogtreecommitdiff
path: root/src/include/cctk_Interp.h
blob: 37801654ba8d9aeb837328f52856f6e1bbfdf66a (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
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
85
86
87
 /*@@
   @header    cctk_Interp.h
   @date      July 07 1999
   @author    Thomas Radke
   @desc 
              Header file for using interpolation operators
   @enddesc 
   @history
   @date      July 07 1999
   @author    Thomas Radke
   @hdesc     Just copied from cctk_Reduction.h
   @endhistory
 @@*/


#ifndef _CCTK_INTERP_H_
#define _CCTK_INTERP_H_

#ifdef __cplusplus
extern "C" {
#endif

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

int CCTK_InterpArray(cGH *GH,
                int operation_handle,
                int nPoints,
                int nCoords,
                int nInFields,
                int nOutFields,
                ...);

int CCTK_InterpHandle(const char *interp);

int CCTK_InterpRegisterOperator(int (*function)(INTERP_REGISTER_ARGLIST),
                                const char *name);

int CCTK_Interp(cGH *GH,
                 int operation_handle,
                 int nPoints,
                 int nDims,
                 int nInFields,
                 int nOutFields,
                 ...);

  /* DEPRECATED IN BETA 9 */
#define REGISTER_INTERP_ARGLIST  \
                         cGH *,  \
                         int,    \
                         int,    \
                         int,    \
                         int,    \
                         int *,  \
                         void **,\
                         int *,  \
                         void *, \
                         void *, \
                         void **,\
                         int *,  \
                         void **,\
                         int *    
int CCTK_GetInterpHandle(const char *interp);
int CCTK_RegisterInterpOperator(int (*function)(REGISTER_INTERP_ARGLIST),
                                const char *name);


  /* END DEPRECATED IN BETA 9 */

#ifdef __cplusplus
           }
#endif

#endif  /* _INTERP_H_ */