aboutsummaryrefslogtreecommitdiff
path: root/param.ccl
blob: f704490b6b61947a51ec3401808cc94307324287 (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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
# Parameter definitions for thorn PUGH
# $Header$

shares: cactus
USES KEYWORD terminate

USES REAL cctk_initial_time 

USES REAL cctk_final_time 

USES INT cctk_itlast 

USES REAL max_runtime 

USES BOOLEAN terminate_next

############################# Restricted Parameters #########################
restricted:

BOOLEAN periodic "Periodic boundary conditions"
{
} "no"

BOOLEAN periodic_x "Periodic boundary conditions in x-direction"
{
} "yes"

BOOLEAN periodic_y "Periodic boundary conditions in y-direction"
{
} "yes"

BOOLEAN periodic_z "Periodic boundary conditions in z-direction"
{
} "yes"

############################# Private Parameters ############################
private:

INT global_nx "The size of the grid in the x direction"
{
    0:*     :: "Grid of this size distributed across all processors"
} 10

INT global_ny "The size of the grid in the y direction"
{
    0:*     :: "Grid of this size distributed across all processors"
} 10

INT global_nz "The size of the grid in the z direction"
{
    0:*     :: "Grid of this size distributed across all processors"
} 10

INT global_nsize "The size of the grid in each spatial direction"
{
    -1:*     :: "Grid of this size in each dir distributed across all processors"
} -1

INT ghost_size_x "The width of the ghost zone in the x direction"
{
    0:*     :: "Must be a positive integer"
} 1

INT ghost_size_y "The width of the ghost zone in the y direction"
{
    0:*     :: "Must be a positive integer"
} 1

INT ghost_size_z "The width of the ghost zone in the z direction"
{
    0:*     :: "Must be a positive integer"
} 1

INT ghost_size "The width of the ghost zone in each direction"
{
    -1:*     :: "Any positive number to override the ghost_size_[xyz] parameters"
} -1

KEYWORD info "Provide additional information about what PUGH is doing"
{
  "none" :: "No extra information"
  "load" :: "Load on each processor"
} "none"

INT local_nx "The size of the grid in the x direction"
{
    -1:*     :: "Grid of this size on each processor"
} -1

INT local_ny "The size of the grid in the y direction"
{
    -1:*     :: "Grid of this size on each processor"
} -1

INT local_nz "The size of the grid in the z direction"
{
    -1:*     :: "Grid of this size on each processor"
} -1

INT local_nsize "The size of the grid in each spatial direction"
{
    -1:*     :: "Grid of this size in each dir on each processor"
} -1

BOOLEAN local_size_includes_ghosts "Does the local grid size include the ghost zones?"
{
} "yes"

BOOLEAN enable_all_storage "Enable storage for all GFs?"
{
} "no"

# Processor topology

# Thomas Radke, 19 December 2005:
# don't make physical2logical and processor_topology restricted parameters
# so that PUGH and Carpet can still be compiled together
#restricted:

KEYWORD physical2logical "Physical process to logical process mapping method to use" STEERABLE = RECOVER
{
  "direct"  :: "Maps MPI IDs directly to IJKs"
  "example" :: "Maps MPI IDs directly to IJKs using a lookup table"
} "direct"

KEYWORD processor_topology "How to determine the processor topology" STEERABLE = RECOVER
{
  "manual"        :: "Specified by proc_top_nx etc"
  "automatic"     :: "Automatically generated"
  "automatic_old" :: "Automatically generated (old method)"
} "automatic"

private:

INT processor_topology_1d_x "Number of processors in X direction" STEERABLE = RECOVER
{
  0:*  :: "See proc_topology"
} 0

INT processor_topology_2d_x "Number of processors in X direction" STEERABLE = RECOVER
{
  0:*  :: "See proc_topology"
} 0

INT processor_topology_2d_y "Number of processors in Y direction" STEERABLE = RECOVER
{
  0:*  :: "See proc_topology"
} 0

INT processor_topology_3d_x "Number of processors in X direction" STEERABLE = RECOVER
{
  0:*  :: "See proc_topology"
} 0

INT processor_topology_3d_y "Number of processors in Y direction" STEERABLE = RECOVER
{
  0:*  :: "See proc_topology"
} 0

INT processor_topology_3d_z "Number of processors in Z direction" STEERABLE = RECOVER
{
  0:*  :: "See proc_topology"
} 0


# padding stuff

BOOLEAN padding_active "Pad 3D arrays so they line up on cache lines?"
{
} no


INT padding_cacheline_bits "Number of bits which have to be unique to pad properly for cache lines"
{
  1:*  :: "Any positive number"
} 12

INT padding_size "How many CCTK_REALs to pad by; we have to noodle around with the starting address, so if there isn't enough space we may not be able to pad"
{
  0:*  ::  "Any positive number"
} 4112

INT padding_address_spacing "Number of CCTK_REALs to space starting addresses in lowest padding_cacheline_bits bits"
{
  0:*  ::  "Any positive number"
} 24

KEYWORD initialize_memory "How to initialize memory for grid variables at allocation time" STEERABLE = ALWAYS
{
  "none" :: "Do not initialize storage for allocated grid variables (default)"
  "zero" :: "Zero out all elements of all allocated grid variables"
  "NaN"  :: "Set all elements of allocated floating point grid variables to Not-a-Number values"
} "none"


KEYWORD partition "Is the partition manual"
{
 "automatic"    :: "even"
 "manual"       :: "specified by partition_XYZ .."
} "automatic"

STRING partition_1d_x "Tells how to partition on direction X"
{
.* :: "A regex which matches anything"
} ""

STRING partition_2d_x "Tells how to partition on direction X"
{
.* :: "A regex which matches anything"
} ""

STRING partition_2d_y "Tells how to partition on direction y"
{
.* :: "A regex which matches anything"
} ""

STRING partition_3d_x "Tells how to partition on direction X"
{
.* :: "A regex which matches anything"
} ""

STRING partition_3d_y "Tells how to partition on direction y"
{
.* :: "A regex which matches anything"
} ""

STRING partition_3d_z "Tells how to partition on direction z"
{
.* :: "A regex which matches anything"
} ""

KEYWORD storage_verbose "Report on memory assignment" STEERABLE = ALWAYS
{
  "yes"    :: "Standard storage information"
  "report" :: "Provide a report of storage every storage_report_every iterations and at termination"
  "no"     :: "Provide no information"
} "no"

INT storage_report_every "How often to provide a report on storage information" STEERABLE = ALWAYS
{
  0:0 :: "Never report"
  1:* :: "Report at intervals"
} 0

BOOLEAN timer_output  "Print time spent in communication"
{
} "no"

INT cacheline_mult "Multiplier for cacheline number"
{
  0:*  ::  "Any positive number"
} 4001

# Provide ability to switch of overloading of individual driver functions

BOOLEAN overloadevolve "Overload Evolve driver function"
{
} "yes"
BOOLEAN overloadsyncgroup "Overload SyncGroup driver function"
{
} "no"
BOOLEAN overloadsyncgroupsbydiri "Overload SyncGroupsByDirI driver function"
{
} "yes"
BOOLEAN overloadenablegroupstorage "Overload EnableGroupStorage driver function"
{
} "yes"
BOOLEAN overloaddisablegroupstorage "Overload DisableGroupStorage driver function"
{
} "yes"
BOOLEAN overloadenablegroupcomm "Overload EnableGroupComm driver function"
{
} "yes"
BOOLEAN overloaddisablegroupcomm "Overload DisableGroupComm driver function"
{
} "yes"
BOOLEAN overloadbarrier "Overload Barrier driver function"
{
} "yes"
BOOLEAN overloadparallelinit "Overload ParallelInit driver function"
{
} "yes"
BOOLEAN overloadexit "Overload Exit driver function"
{
} "yes"
BOOLEAN overloadabort "Overload Abort driver function"
{
} "yes"
BOOLEAN overloadmyproc "Overload MyProc driver function"
{
} "yes"
BOOLEAN overloadnprocs "Overload nProcs driver function"
{
} "yes"
BOOLEAN overloadarraygroupsizeb "Overload ArrayGroupSizeB driver function"
{
} "yes"
BOOLEAN overloadquerygroupstorageb "Overload QueryGroupStorageB driver function"
{
} "yes"
BOOLEAN overloadgroupdynamicdata "Overload GroupDynamicData driver function"
{
} "yes"