Run TUFLOW From PowerShell: Difference between revisions
Content deleted Content added
Chris Huxley (talk | contribs) |
Chris Huxley (talk | contribs) |
||
Line 61:
=Looping=
Looping is undertaken in a similar way to batch files. The following PowerShell script contains a nested loop, so that TUFLOW runs a simulation for all combinations of scenario and event.
Comments can be added using #.
<pre>
#TUFLOW run variables
$scenarios = @("1m", "2m", "5m")
$events = @("1hr", "2hr", "5hr")
# simulation execution loop
foreach ($scenario in $scenarios){
foreach ($event in $events){
| |||