aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetTest/interface.ccl
blob: ac7b03eb9b54d09b3cc40e6be48e28bfd821f907 (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
# Interface definition for thorn CarpetTest

implements: CarpetTest



CCTK_REAL gfg type=GF
{
  gf
} "grid function"

CCTK_REAL arrg3 type=ARRAY size=i3,i4,i5
{
  arr3
} "3D array"

CCTK_REAL arrg2 type=ARRAY dim=2 size=i6,i7 tags="no_split_directions={1}"
{
  arr2
} "2D array"

CCTK_REAL arrg1 type=ARRAY dim=1 size=i8
{
  arr1
} "1D array"

CCTK_REAL scg type=SCALAR
{
  sc
} "scalar"



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)
REQUIRES FUNCTION Hyperslab_GlobalMappingByIndex

CCTK_INT FUNCTION Hyperslab_FreeMapping (CCTK_INT IN mapping_handle)
REQUIRES FUNCTION Hyperslab_FreeMapping

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)
REQUIRES FUNCTION Hyperslab_Get



CCTK_REAL yy TYPE=gf "A copy of y"