FFSM++ 1.1.0
French Forest Sector Model ++
Loading...
Searching...
No Matches
/exports/ffsm/src_latest/runscenarios.sh
Go to the documentation of this file.
1#!/bin/bash
2
3#---------------------------------------
4# Shell script to run ffsm scenarios
5#---------------------------------------
6
7# Safe parallel..
8./ffsm -c -s scenarioName1 > logs/scenarioName1.txt &
9./ffsm -c -s scenarioName2 > logs/scenarioName2.txt &
10
11
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..
14for i in {1..30}
15do
16 ./ffsm -c -s randomSpace 1> /dev/null 2> /dev/null &
17done
18
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
24
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'
29
30
31