3 #---------------------------------------
4 # Shell script to run ffsm scenarios
5 #---------------------------------------
8 ./ffsm -c -s scenarioName1 > logs/scenarioName1.txt &
9 ./ffsm -c -s scenarioName2 > logs/scenarioName2.txt &
12 # Running the same scenario (e.g. for repetitions) in parallel is safe as long as newRandomSeed
13 # is set to true and outputSingleFile is set to false..
16 ./ffsm -c -s randomSpace 1> /dev/null 2> /dev/null &
19 # A better approach to run scenarios in parallel is using GNU parallel: you can set the maximum
20 # number of processes and then the jobs are put in a queue.
21 # In that case run this script as:
22 # parallel --jobs <n of jobs> -a runscenarios.sh
23 # and put something like this in the script
25 ./run_single_scenario.sh 'scenarioName1'
26 ./run_single_scenario.sh 'scenarioName2'
27 ./run_single_scenario.sh 'inputFile1' 'scenarioName3'
28 ./run_single_scenario.sh 'inputFile2' 'scenarioName4'