aboutsummaryrefslogtreecommitdiff
path: root/schedule.ccl
blob: e7730f26bf0bf19485f795ebb42c0d6d8e75ea60 (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
# Schedule definitions for thorn CartGrid3D
# $Header$

STORAGE: coordinates gridspacings

schedule SymmetryStartup at CCTK_STARTUP
{
  LANG: C
} "Register GH Extension for GridSymmetry"

schedule RegisterCartGrid3DCoords at CCTK_WRAGH
{
  LANG:C
  OPTIONS: meta
} "Register coordinates for the Cartesian grid"

schedule RegisterSymmetryBoundaries in SymmetryRegister
{
  LANG:C
  OPTIONS: meta
} "Register symmetry boundaries"

schedule ParamCheck_CartGrid3D at CCTK_PARAMCHECK
{
  LANG:C
} "Check coordinates for CartGrid3D"

if (CCTK_EQUALS (set_coordinate_ranges_on, "all grids"))
{
  schedule CartGrid3D_SetRanges at CCTK_BASEGRID as SpatialSpacings before SpatialCoordinates
  {
    LANG:C
  } "Set up ranges for spatial 3D Cartesian coordinates (on all grids)"
}
else if (CCTK_EQUALS (set_coordinate_ranges_on, "all maps"))
{
  schedule CartGrid3D_SetRanges at CCTK_BASEGRID as SpatialSpacings before SpatialCoordinates
  {
    LANG:C
    OPTIONS: singlemap
  } "Set up ranges for spatial 3D Cartesian coordinates (on all maps)"
}
else if (CCTK_EQUALS (set_coordinate_ranges_on, "first level"))
{
  schedule CartGrid3D_SetRanges at CCTK_BASEGRID as SpatialSpacings before SpatialCoordinates
  {
    LANG:C
    OPTIONS: level
  } "Set up ranges for spatial 3D Cartesian coordinates (on first level)"
}

schedule CartGrid3D_SetCoordinates as SpatialCoordinates at CCTK_BASEGRID
{
  LANG:C
  WRITES: grid::coordinates
} "Set up spatial 3D Cartesian coordinates on the GH"

schedule CartGrid3D_SetCoordinates as SpatialCoordinates at CCTK_POSTREGRIDINITIAL
{
  LANG: C
  WRITES: grid::coordinates
} "Set Coordinates after regridding"

schedule CartGrid3D_SetCoordinates as SpatialCoordinates at CCTK_POSTREGRID
{
  LANG: C
  WRITES: grid::coordinates
} "Set Coordinates after regridding"

schedule CartGrid3D_ApplyBC in BoundaryConditions
{
  LANG: C
} "Apply symmetry boundary conditions"