-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworkflow.xml
244 lines (244 loc) · 9.85 KB
/
workflow.xml
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
<tool id='NA' name='NA'>
<command interpreter='bash'>main.sh</command>
<cancel interpreter='bash'>cancel.sh</cancel>
<inputs>
<section name='dcs' type='section' title='Monte Carlo Simulation Options' expanded='true'>
<param
name='model_file'
type='select'
label='3DCS Model File (.WTX)'
help='3DCS exported model wtx model file.'
multiple='false'
>
<option value="AAO_HeadLamp_Assembly.wtx" selected="true">AAO_HeadLamp_Assembly.wtx</option>
<option value="TC2-1216981compliant_model.wtx" selected="true">TC2-1216981compliant_model.wtx</option>
</param>
<param
name='num_seeds'
type='integer'
label='Number of Monte Carlo Simulations'
min='1'
max='10000'
value='2000'>
</param>
<param
name='concurrency'
type='integer'
label='Case Concurrency'
min='1'
max='100'
value='10'
help='Number of workers used to run the simulations.'
></param>
<param
name='thread'
type='integer'
label='Thread Number [0-4]'
min='0'
max='4'
value='0'
help='Number of threads used to run the simulation.'
></param>
</section>
<section name='pwrl_001_simulation_executor' type='section' title='Simulation Executor' expanded='true'>
<param
name='dcs_load'
label='Command to load DCS'
type='text'
help='To load the environment, enter the appropriate command, for example: module load module-name or source path/to/env.sh.'
value=''
></param>
<param
name='dcs_run'
label='Command to run DCS'
type='text'
help='Specify the PATH as seen from Windows Subsystem for Linux or Wine'
value='/c/Program Files/DCS/3DCS_MC_8_0_0_0/dcsSimuMacro.exe'
></param>
<param
name='resource'
type='computeResource'
label='Resource'
hideUserWorkspace='true'
help='Resource to run the simulation task'>
</param>
<param
name='jobschedulertype'
label='Select Controller, SLURM Partition or PBS Queue'
type='hidden'
value='SLURM'
>
</param>
<conditional name="jobschedulertype_cond">
<param
name='jobschedulertype'
type='select'
label='Select SLURM Partition or PBS Queue'
help='Job will submitted using sbatch or qsub, respectively'
multiple='false'
>
<option value="SLURM" selected="true">SLURM Partition</option>
<option value="PBS">PBS Queue</option>
</param>
<when value="SLURM">
<param
name='_sch__dd_partition_e_'
label='Slurm Partition'
type='text'
help='Name of the SLURM partition to run the OpenFOAM cases'
value=''
></param>
<param
name='_sch__dd_ntasks_d_per_d_node_e_'
label='Tasks per Node'
type='integer'
min="1"
max="64"
help='--ntasks-per-node=value slurm directive'
value='2'
></param>
<param
name='_sch__dd_nodes_e_'
label='Number of Nodes'
type='integer'
min="1"
max="2"
help='--nodes=value slurm directive'
value='1'
></param>
<param
name='_sch__dd_time_e_'
label='Walltime'
type='text'
help='Maximum walltime per OpenFOAM case'
value='02:00:00'
></param>
<param
name='scheduler_directives'
label='Scheduler directives'
type='text'
help='e.g. --mem=1000;--gpus-per-node=1 - Use the semicolon character ; to separate parameters. Do not include the SBATCH keyword.'
value=''
></param>
</when>
<when value="PBS">
<param
name='_sch__d_q___'
label='PBS queue'
type='text'
help='Queue to submit the interactive job. Must select one! Use [qstat -f -Q] to list all queues on the system'
value=''
></param>
<param
name='scheduler_directives'
label='Scheduler directives'
type='text'
help='e.g. -l mem=1000;-l nodes=1:ppn=4 - Use the semicolon character ; to separate parameters. Do not include the PBS keyword.'
value='-l walltime=02:30:00;-l nodes=1:ppn=4'
></param>
</when>
</conditional>
<param name='workdir' label='Shared Work Directory' type='text' help='This directory must be shared between the compute and login nodes. This parameter overwrites the working directory in the resource definition page' value='__WORKDIR__'></param>
</section>
<section name='pwrl_002_merge_executor' type='section' title='Merge Executor' expanded='true'>
<param
name='dcs_load'
label='Command to load DCS'
type='text'
help='To load the environment, enter the appropriate command, for example: module load module-name or source path/to/env.sh.'
value=''
></param>
<param
name='dcs_run'
label='Command to run DCS'
type='text'
help='Specify the PATH as seen from Windows Subsystem for Linux or Wine'
value='/c/Program Files/DCS/3DCS_MC_8_0_0_0/dcsSimuMacro.exe'
></param>
<param
name='resource'
type='computeResource'
label='Resource'
hideUserWorkspace='true'
help='Resource to run the merge task'>
</param>
<param
name='jobschedulertype'
label='Select Controller, SLURM Partition or PBS Queue'
type='hidden'
value='SLURM'
>
</param>
<conditional name="jobschedulertype_cond">
<param
name='jobschedulertype'
type='select'
label='Select SLURM Partition or PBS Queue'
help='Job will submitted using sbatch or qsub, respectively'
multiple='false'
>
<option value="SLURM" selected="true">SLURM Partition</option>
<option value="PBS">PBS Queue</option>
</param>
<when value="SLURM">
<param
name='_sch__dd_partition_e_'
label='Slurm Partition'
type='text'
help='Name of the SLURM partition to run the OpenFOAM cases'
value=''
></param>
<param
name='_sch__dd_ntasks_d_per_d_node_e_'
label='Tasks per Node'
type='integer'
min="1"
max="64"
help='--ntasks-per-node=value slurm directive'
value='2'
></param>
<param
name='_sch__dd_nodes_e_'
label='Number of Nodes'
type='integer'
min="1"
max="2"
help='--nodes=value slurm directive'
value='1'
></param>
<param
name='_sch__dd_time_e_'
label='Walltime'
type='text'
help='Maximum walltime per OpenFOAM case'
value='02:00:00'
></param>
<param
name='scheduler_directives'
label='Scheduler directives'
type='text'
help='e.g. --mem=1000;--gpus-per-node=1 - Use the semicolon character ; to separate parameters. Do not include the SBATCH keyword.'
value=''
></param>
</when>
<when value="PBS">
<param
name='_sch__d_q___'
label='PBS queue'
type='text'
help='Queue to submit the interactive job. Must select one! Use [qstat -f -Q] to list all queues on the system'
value=''
></param>
<param
name='scheduler_directives'
label='Scheduler directives'
type='text'
help='e.g. -l mem=1000;-l nodes=1:ppn=4 - Use the semicolon character ; to separate parameters. Do not include the PBS keyword.'
value='-l walltime=02:30:00;-l nodes=1:ppn=4'
></param>
</when>
</conditional>
<param name='workdir' label='Shared Work Directory' type='text' help='This directory must be shared between the compute and login nodes. This parameter overwrites the working directory in the resource definition page' value='__WORKDIR__'></param>
</section>
</inputs>
</tool>