aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetSlab/interface.ccl
blob: 66e23346728bb29699966dd33930299353e8f45a (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
88
89
90
91
92
93
94
# Interface definition for thorn CarpetSlab
# $Header:$

IMPLEMENTS: Hyperslab

includes header: GetHyperslab.h in Hyperslab.h

uses include header: carpet.hh

uses include header: bbox.hh
uses include header: bboxset.hh
uses include header: vect.hh

uses include header: gdata.hh

uses include header: dh.hh
uses include header: ggf.hh
uses include header: gh.hh



CCTK_INT FUNCTION \
  Hyperslab_LocalMappingByIndex (CCTK_POINTER_TO_CONST IN cctkGH, \
                                 CCTK_INT IN vindex, \
                                 CCTK_INT IN hdim, \
                                 CCTK_INT ARRAY IN direction, \
                                 CCTK_INT ARRAY IN origin, \
                                 CCTK_INT ARRAY IN extent, \
                                 CCTK_INT ARRAY IN downsample, \
                                 CCTK_INT IN table_handle, \
                                 CCTK_INT CCTK_FPOINTER IN \
                                   conversion_fn (CCTK_INT IN nelems, \
                                                  CCTK_INT IN src_stride, \
                                                  CCTK_INT IN dst_stride, \
                                                  CCTK_INT IN src_type, \
                                                  CCTK_INT IN dst_type, \
                                                  CCTK_POINTER_TO_CONST IN from, \
                                                  CCTK_POINTER IN to), \
                                 CCTK_INT ARRAY OUT hsize_local, \
                                 CCTK_INT ARRAY OUT hsize_global, \
                                 CCTK_INT ARRAY OUT hoffset_global)
PROVIDES FUNCTION Hyperslab_LocalMappingByIndex \
  WITH CarpetSlab_LocalMappingByIndex LANGUAGE C

CCTK_INT FUNCTION \
  Hyperslab_GlobalMappingByIndex (CCTK_POINTER_TO_CONST IN cctkGH, \
                                  CCTK_INT IN vindex, \
                                  CCTK_INT IN hdim, \
                                  CCTK_INT ARRAY IN direction, \
                                  CCTK_INT ARRAY IN origin, \
                                  CCTK_INT ARRAY IN extent, \
                                  CCTK_INT ARRAY IN downsample, \
                                  CCTK_INT IN table_handle, \
                                  CCTK_INT CCTK_FPOINTER IN \
                                    conversion_fn (CCTK_INT IN nelems, \
                                                   CCTK_INT IN src_stride, \
                                                   CCTK_INT IN dst_stride, \
                                                   CCTK_INT IN src_type, \
                                                   CCTK_INT IN dst_type, \
                                                   CCTK_POINTER_TO_CONST IN from, \
                                                   CCTK_POINTER IN to), \
                                  CCTK_INT ARRAY OUT hsize)
PROVIDES FUNCTION Hyperslab_GlobalMappingByIndex \
  WITH CarpetSlab_GlobalMappingByIndex LANGUAGE C

CCTK_INT FUNCTION Hyperslab_FreeMapping (CCTK_INT IN mapping_handle)
PROVIDES FUNCTION Hyperslab_FreeMapping \
  WITH CarpetSlab_FreeMapping LANGUAGE C



CCTK_INT FUNCTION \
  Hyperslab_Get (CCTK_POINTER_TO_CONST IN cctkGH, \
                 CCTK_INT IN mapping_handle, \
                 CCTK_INT IN proc, \
                 CCTK_INT IN vindex, \
                 CCTK_INT IN timelevel, \
                 CCTK_INT IN hdatatype, \
                 CCTK_POINTER IN hdata)
PROVIDES FUNCTION Hyperslab_Get \
  WITH CarpetSlab_Get LANGUAGE C

CCTK_INT FUNCTION \
  Hyperslab_GetList (CCTK_POINTER_TO_CONST IN cctkGH, \
                     CCTK_INT IN mapping_handle, \
                     CCTK_INT IN num_arrays, \
                     CCTK_INT ARRAY IN procs, \
                     CCTK_INT ARRAY IN vindices, \
                     CCTK_INT ARRAY IN timelevels, \
                     CCTK_INT ARRAY IN hdatatypes, \
                     CCTK_POINTER ARRAY IN hdata, \
                     CCTK_INT ARRAY OUT retvals)
PROVIDES FUNCTION Hyperslab_GetList \
  WITH CarpetSlab_GetList LANGUAGE C