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



# 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"



if(CCTK_Equals(metric_type,"static conformal"))
{
  if (conformal_timelevels==1)
  {

    if(CCTK_Equals(conformal_storage, "factor"))
    {
      STORAGE: confac[1]
    }
  
    if(CCTK_Equals(conformal_storage, "factor+derivs"))
    {
      STORAGE: confac[1], confac_1derivs[1]
    }
  
    if(CCTK_Equals(conformal_storage, "factor+derivs+2nd derivs"))
    {
      STORAGE: confac[1], confac_1derivs[1], confac_2derivs[1]
    }

  }
  else
  {

    if(CCTK_Equals(conformal_storage, "factor"))
    {
      STORAGE: confac[3]
    }
  
    if(CCTK_Equals(conformal_storage, "factor+derivs"))
    {
      STORAGE: confac[3], confac_1derivs[3]
    }
  
    if(CCTK_Equals(conformal_storage, "factor+derivs+2nd derivs"))
    {
      STORAGE: confac[3], confac_1derivs[3], confac_2derivs[3]
    }

    SCHEDULE StaticConformal_Evolve at CCTK_PRESTEP
    {
      LANG: C
    } "Evolve the static conformal factor"

  }
}