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



if(CCTK_Equals(metric_type,"static conformal"))
{
  STORAGE: conformal_state

  SCHEDULE StaticConformal_InitialiseState at CCTK_BASEGRID
  {
    LANG: C
  } "Set the conformal_state variable to 0"


  if(CCTK_Equals(conformal_storage, "factor"))
  {
    STORAGE: staticconformal::confac
  }

  if(CCTK_Equals(conformal_storage, "factor+derivs"))
  {
    STORAGE: staticconformal::confac, staticconformal::confac_1derivs 
  }

  if(CCTK_Equals(conformal_storage, "factor+derivs+2nd derivs"))
  {
    STORAGE: staticconformal::confac, staticconformal::confac_1derivs, staticconformal::confac_2derivs
  }
}
else
{
# Putting in an else here because people want to use conformal_state
# even if the metric is not "static conformal".  They should still
# check the metric_type and know they can deal with it, 'though.
  STORAGE: conformal_state

  SCHEDULE StaticConformal_InitialiseState at CCTK_BASEGRID
  {
    LANG: C
  } "Set the conformal_state variable to 0"
}