Skip to content
Snippets Groups Projects
Commit 8faf5f42 authored by Peter Alexander's avatar Peter Alexander
Browse files

Pass 'prune' flag from scheduleScenarios.sh to runPlum.sh

parent 92e814c7
No related branches found
No related tags found
No related merge requests found
ssp,protectionism,automation,diet,climate,cyber,financial ssp,protectionism,automation,diet,climate,cyber,financial
SSP1,0.1,0.5,0.9,0.01,0.05,0.01 SSP1,0,1,0,0,0,0
SSP2,0.7,0.5,0.3,0.07,0.05,0.03 SSP2,0,1,0,0,0,0
SSP3,0.9,0.1,0.1,0.07,0.01,0.09 SSP3,0,1,0,0,0,0
SSP4,0.3,0.7,0.3,0.09,0.07,0.05 SSP4,0,1,0,0,0,0
SSP5,0.1,0.9,0.1,0.09,0.09,0.03 SSP5,0,1,0,0,0,0
#!/bin/sh #!/bin/sh
while getopts ":t:b:" opt; do while getopts ":t:p:b:" opt; do
case ${opt} in case ${opt} in
b ) b )
build=${OPTARG} build=${OPTARG}
;; ;;
p )
prune=${OPTARG}
;;
t ) t )
filename=${OPTARG} filename=${OPTARG}
;; ;;
...@@ -28,6 +31,11 @@ then ...@@ -28,6 +31,11 @@ then
exit -1 exit -1
fi fi
if [ -z ${prune+x} ];
then
prune="y"
fi
output_dir=/exports/csce/eddie/geos/groups/LURG/models/PLUM/output output_dir=/exports/csce/eddie/geos/groups/LURG/models/PLUM/output
echo "Starting scenarios in $output_dir" echo "Starting scenarios in $output_dir"
...@@ -50,8 +58,8 @@ do ...@@ -50,8 +58,8 @@ do
jobName="$(echo $ensemble | sed 's,\.\/,,' | sed 's,\/,_,g')_$scenario" jobName="$(echo $ensemble | sed 's,\.\/,,' | sed 's,\/,_,g')_$scenario"
echo "qsub -hold_jid calib -N $jobName /exports/csce/eddie/geos/groups/LURG/models/PLUM/plumv2/scripts/runPlum.sh -s $ensemble/$scenario -b $build -r y -p y" echo "qsub -hold_jid calib -N $jobName /exports/csce/eddie/geos/groups/LURG/models/PLUM/plumv2/scripts/runPlum.sh -s $ensemble/$scenario -b $build -r y -p $prune"
qsub -hold_jid calib -N $jobName /exports/csce/eddie/geos/groups/LURG/models/PLUM/plumv2/scripts/runPlum.sh -s $ensemble/$scenario -b $build -r y -p y qsub -hold_jid calib -N $jobName /exports/csce/eddie/geos/groups/LURG/models/PLUM/plumv2/scripts/runPlum.sh -s $ensemble/$scenario -b $build -r y -p $prune
fi fi
done < $filename done < $filename
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment