aboutsummaryrefslogtreecommitdiff
path: root/interface.ccl
blob: 6029816d89be6e777ac85157c69df71395c29df8 (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
# Interface definition for thorn CoordBase
# $Header$

implements: CoordBase 

include header: CoordBase.h in CoordBase.h



# The location of the boundary points

CCTK_INT FUNCTION GetBoundarySpecification \
  (CCTK_INT IN size, \
   CCTK_INT OUT ARRAY nboundaryzones, \
   CCTK_INT OUT ARRAY is_internal, \
   CCTK_INT OUT ARRAY is_staggered, \
   CCTK_INT OUT ARRAY shiftout)
PROVIDES FUNCTION GetBoundarySpecification \
   WITH CoordBase_GetBoundarySpecification \
   LANGUAGE C



# The overall extent of the domain

CCTK_INT FUNCTION GetDomainSpecification \
  (CCTK_INT IN size, \
   CCTK_REAL OUT ARRAY physical_min, \
   CCTK_REAL OUT ARRAY physical_max, \
   CCTK_REAL OUT ARRAY interior_min, \
   CCTK_REAL OUT ARRAY interior_max, \
   CCTK_REAL OUT ARRAY exterior_min, \
   CCTK_REAL OUT ARRAY exterior_max, \
   CCTK_REAL OUT ARRAY spacing)
PROVIDES FUNCTION GetDomainSpecification \
   WITH CoordBase_GetDomainSpecification \
   LANGUAGE C



# Convert between boundaries types

CCTK_INT FUNCTION ConvertFromPhysicalBoundary \
  (CCTK_INT INT size, \
   CCTK_REAL IN  ARRAY physical_min, \
   CCTK_REAL IN  ARRAY physical_max, \
   CCTK_REAL OUT ARRAY interior_min, \
   CCTK_REAL OUT ARRAY interior_max, \
   CCTK_REAL OUT ARRAY exterior_min, \
   CCTK_REAL OUT ARRAY exterior_max, \
   CCTK_REAL IN  ARRAY spacing)
PROVIDES FUNCTION ConvertFromPhysicalBoundary \
   WITH CoordBase_ConvertFromPhysicalBoundary \
   LANGUAGE C

CCTK_INT FUNCTION ConvertFromInteriorBoundary \
  (CCTK_INT INT size, \
   CCTK_REAL OUT ARRAY physical_min, \
   CCTK_REAL OUT ARRAY physical_max, \
   CCTK_REAL IN  ARRAY interior_min, \
   CCTK_REAL IN  ARRAY interior_max, \
   CCTK_REAL OUT ARRAY exterior_min, \
   CCTK_REAL OUT ARRAY exterior_max, \
   CCTK_REAL IN  ARRAY spacing)
PROVIDES FUNCTION ConvertFromInteriorBoundary \
   WITH CoordBase_ConvertFromInteriorBoundary \
   LANGUAGE C

CCTK_INT FUNCTION ConvertFromExteriorBoundary \
  (CCTK_INT INT size, \
   CCTK_REAL OUT ARRAY physical_min, \
   CCTK_REAL OUT ARRAY physical_max, \
   CCTK_REAL OUT ARRAY interior_min, \
   CCTK_REAL OUT ARRAY interior_max, \
   CCTK_REAL IN  ARRAY exterior_min, \
   CCTK_REAL IN  ARRAY exterior_max, \
   CCTK_REAL IN  ARRAY spacing)
PROVIDES FUNCTION ConvertFromExteriorBoundary \
   WITH CoordBase_ConvertFromExteriorBoundary \
   LANGUAGE C