aboutsummaryrefslogtreecommitdiff
path: root/schedule.ccl
blob: a8a3599ff3bc63fd80dbe6c183f8f856112b7418 (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 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 (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"

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