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

if (cartoon_active)
{
  if (allow_grid_resize)
  {
    schedule Cartoon2D_SetGrid at CCTK_RECOVER_PARAMETERS
    {
      LANG: C
    } "Adjust grid sizes"
  }

  schedule Cartoon2D_CheckParameters at CCTK_PARAMCHECK
  {
    LANG: C
  } "Check Cartoon2D parameters"

  # Reset symmetries for relevant grid functions:
  # (With the new Symmetry thorn this will be handled much better...)

  if (CCTK_IsImplementationActive("ADMBase"))
  {
    schedule Cartoon_SetSym_Einstein at CCTK_BASEGRID after SpatialCoordinates
    {
      LANG: C
    } "Reset symmetries for Einstein grid functions"
  }

  if (CCTK_IsImplementationActive("adm_bssn"))
  {
    schedule Cartoon_SetSym_BSSN at CCTK_BASEGRID after SpatialCoordinates
    {
      LANG: C
    } "Reset symmetries for ADM_BSSN grid functions"
  }

  if (CCTK_IsImplementationActive("WaveToy"))
  {
    schedule Cartoon_SetSym_WaveToy at CCTK_BASEGRID after SpatialCoordinates
    {
      LANG: C
    } "Reset symmetries for WaveToy grid function"
  }

  # Apply cartoon boundary conditions after physical boundaries:
  schedule Cartoon_ApplyBoundaries in BoundaryConditions after Boundary_ApplyPhysicalBCs
  {
    LANG: C
  } "Execute Cartoon boundary conditions"
}