blob: dc5418ecb0f4dc0d0c1b14029452b9d2a6bd451f (
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
|
# 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_INITIAL before ADMBase_InitialData
{
LANG: C
} "Set the conformal_state variable to 0"
if(CCTK_Equals(metric_type,"static conformal"))
{
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]
}
}
|