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

Pass build version through scheduleScenarios.sh

parent d81b3c32
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
if [ "$#" -lt 1 ]; then
echo "Need to specify scenario table file"
exit
while getopts ":t:b:" opt; do
case ${opt} in
b )
build=${OPTARG}
;;
t )
filename=${OPTARG}
;;
esac
done
echo Scenario table file $filename
if [ -z ${filename+x} ];
then
echo "scenario table file is unset, use -t"
exit -1
fi
filename="$1"
#build="${build:-.}"
echo build version $build
if [ -z ${build+x} ];
then
echo "build version is unset"
exit -1
fi
output_dir=/exports/csce/eddie/geos/groups/LURG/models/PLUM/output
echo "Starting scenarios in $output_dir"
......@@ -29,8 +50,8 @@ do
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" -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 -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 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 y
fi
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