aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetIOHDF5/schedule.ccl
blob: dd5dba6b7fc247fdd23382933e3abcef1b333426 (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
# Schedule definitions for thorn CarpetIOHDF5

storage: next_output_iteration next_output_time this_iteration

schedule CarpetIOHDF5_Startup at STARTUP after IOUtil_Startup
{
  LANG: C
} "Startup routine"

schedule CarpetIOHDF5_Init at BASEGRID
{
  LANG: C
  OPTIONS: global
} "Initialisation routine"

schedule CarpetIOHDF5_ReadData at INITIAL
{
  LANG: C
  OPTIONS: level
} "Read initial data from file"

if (checkpoint && checkpoint_ID)
{
  schedule CarpetIOHDF5_InitialDataCheckpoint at CPINITIAL
  {
    LANG: C
    OPTIONS: meta
  } "Initial data checkpoint routine"
}

schedule CarpetIOHDF5_EvolutionCheckpoint at CHECKPOINT
{
  LANG: C
  OPTIONS: meta
} "Evolution checkpoint routine"

schedule CarpetIOHDF5_TerminationCheckpoint at TERMINATE
{
  LANG: C
  OPTIONS: meta
} "Termination checkpoint routine"

schedule CarpetIOHDF5_CloseFile at POSTINITIAL
{
  LANG: C
  OPTIONS: global
} "Close an input file opened by the filereader"

if (! CCTK_Equals (recover, "no") && *recover_file)
{
  schedule CarpetIOHDF5_RecoverParameters at RECOVER_PARAMETERS
  {
    LANG:C
    OPTIONS: meta
  } "Parameter recovery routine"

  schedule CarpetIOHDF5_CloseFile at POST_RECOVER_VARIABLES
  {
    LANG: C
    OPTIONS: global
  } "Close an initial data checkpoint file"
}