aboutsummaryrefslogtreecommitdiff
path: root/param.ccl
blob: 396846ad1ac14a1c3579d52ce739547fe5e51fcb (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# Parameter definitions for thorn IOFlexIO
# $Header$

#############################################################################
### declare IOFlexIO parameters
#############################################################################
private:


########################
# How often to do output
########################
INT out2D_every "How often to do 2D IOFlexIO output, overrides IO::out_every" STEERABLE = ALWAYS
{
   1:* :: "Every so many iterations"
   0:  :: "Disable 2D IOFlexIO output"
  -1:  :: "Default to IO::out_every"
} -1
INT out_every "How often to do IOFlexIO output, overrides IO::out_every" STEERABLE = ALWAYS
{
   1:* :: "Every so many iterations"
   0:  :: "Disable IOFlexIO output"
  -1:  :: "Default to IO::out_every"
} -1


####################
# Output directories
####################
STRING out2D_dir "Output directory for 2D IOFlexIO files, overrides IO::out_dir" STEERABLE = RECOVER
{
  ".+" :: "A valid directory name"
  "^$" :: "An empty string to choose the default from IO::out_dir"
} ""
STRING out_dir "Output directory for IOFlexIO files, overrides IO::out_dir" STEERABLE = RECOVER
{
  ".+" :: "A valid directory name"
  "^$" :: "An empty string to choose the default from IO::out_dir"
} ""


##########################
# What variables to output
##########################
STRING out2D_vars "Variables to output in 2D FlexIO file format" STEERABLE = ALWAYS
{
  ".+" :: "Space-separated list of fully qualified variable/group names"
  "^$" :: "An empty string to output nothing"
} ""
STRING out_vars "Variables to output in FlexIO file format" STEERABLE = ALWAYS
{
  ".+" :: "Space-separated list of fully qualified variable/group names"
  "^$" :: "An empty string to output nothing"
} ""


################
# Various things
################
BOOLEAN checkpoint "Do checkpointing with IOFlexIO" STEERABLE = ALWAYS
{
} "no"
BOOLEAN checkpoint_next "Checkpoint at next iteration" STEERABLE = ALWAYS
{
} "no"
BOOLEAN reuse_filehandles "Reuse system file handles by pausing/resuming IEEEIO files at each output request ?"
{
} "no"


############################
# Specific to 2D output
# Choosing what output to do
############################
CCTK_REAL out2D_yzplane_x "x-coord for 2D planes in yz"
{
  *:* :: ""
} 0.0
CCTK_REAL out2D_xzplane_y "y-coord for 2D planes in xz"
{
  *:* :: ""
} 0.0
CCTK_REAL out2D_xyplane_z "z-coord for 2D planes in xy"
{
  *:* :: ""
} 0.0
CCTK_INT out2D_xyplane_zi "z-index (from 0) for 2D planes in xy"
{
  -1:* :: ""
} -1
CCTK_INT out2D_xzplane_yi "y-index (from 0) for 2D planes in xz"
{
  -1:* :: ""
} -1
CCTK_INT out2D_yzplane_xi "x-index (from 0) for 2D planes in yz"
{
  -1:* :: ""
} -1


#############################################################################
### import IOUtil parameters
#############################################################################
shares: IO

USES STRING out_dir AS io_out_dir
USES INT out_every AS io_out_every

USES CCTK_REAL out_yzplane_x
USES CCTK_REAL out_xzplane_y
USES CCTK_REAL out_xyplane_z
USES CCTK_INT  out_xyplane_zi
USES CCTK_INT  out_xzplane_yi
USES CCTK_INT  out_yzplane_xi

USES KEYWORD verbose
USES BOOLEAN print_timing_info
USES BOOLEAN strict_io_parameter_check

USES KEYWORD out_mode
USES KEYWORD out_fileinfo
USES KEYWORD out_save_parameters
USES INT     out_timesteps_per_file

USES INT     checkpoint_every
USES INT     checkpoint_keep
USES BOOLEAN checkpoint_ID
USES BOOLEAN recover_and_remove
USES BOOLEAN checkpoint_on_terminate
USES KEYWORD recover
USES STRING  recover_file