aboutsummaryrefslogtreecommitdiff
path: root/Examples/SimpleWaveCaKernel/schedule.ccl
blob: 83851b5f9da5dd07a9e66ed68c6a009b23cc5930 (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
# File produced by Kranc


if (timelevels == 1)
{
  STORAGE: phi_g[1]
}

if (timelevels == 1)
{
  STORAGE: pi_g[1]
}

if (rhs_timelevels == 1)
{
  STORAGE: phi_grhs[1]
}

if (rhs_timelevels == 1)
{
  STORAGE: pi_grhs[1]
}

schedule SimpleWaveCaKernel_Startup at STARTUP
{
  LANG: C
  OPTIONS: meta
} "create banner"

schedule SimpleWaveCaKernel_RegisterVars in MoL_Register
{
  LANG: C
  OPTIONS: meta
} "Register Variables for MoL"

schedule SimpleWaveCaKernel_RegisterSymmetries in SymmetryRegister
{
  LANG: C
  OPTIONS: meta
} "register symmetries"

schedule CAKERNEL_Launch_initial_gaussian AT INITIAL
{
  LANG: C
  READS:    grid::coordinates
  WRITES:   SimpleWaveCaKernel::phi_g
  WRITES:   SimpleWaveCaKernel::pi_g
} "initial_gaussian"

schedule CAKERNEL_Launch_calc_rhs at EVOL
{
  LANG: C
  SYNC: phi_grhs
  SYNC: pi_grhs
  READS:    SimpleWaveCaKernel::phi_g
  READS:    SimpleWaveCaKernel::pi_g
  WRITES:   SimpleWaveCaKernel::phi_grhs
  WRITES:   SimpleWaveCaKernel::pi_grhs
} "calc_rhs"

schedule CAKERNEL_Launch_rk1 at EVOL after calc_rhs
{
  LANG: C
  SYNC: phi_g
  SYNC: pi_g
  READS:    SimpleWaveCaKernel::phi_g
  READS:    SimpleWaveCaKernel::phi_grhs
  READS:    SimpleWaveCaKernel::pi_g
  READS:    SimpleWaveCaKernel::pi_grhs
  WRITES:   SimpleWaveCaKernel::phi_g
  WRITES:   SimpleWaveCaKernel::pi_g
} "rk1"

schedule SimpleWaveCaKernel_SelectBoundConds in MoL_PostStep
{
  LANG: C
  OPTIONS: level
  SYNC: phi_g
  SYNC: pi_g
} "select boundary conditions"

schedule SimpleWaveCaKernel_CheckBoundaries at BASEGRID
{
  LANG: C
  OPTIONS: meta
} "check boundaries treatment"

schedule group ApplyBCs as SimpleWaveCaKernel_ApplyBCs in MoL_PostStep after SimpleWaveCaKernel_SelectBoundConds
{
  # no language specified
} "Apply boundary conditions controlled by thorn Boundary"