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

More cluster script changes

parent d60caf17
No related branches found
No related tags found
No related merge requests found
......@@ -5,10 +5,11 @@ if [ $# -ne 1 ]; then
exit 0
fi
jobName=${1//\//_}c # remove slash from path as qsub doesnt allow it
jobName=${jobName/hind1970/h_}
echo $jobName
calibJob=${jobName}_c
jobName=${1//\//_} # remove slash from path as qsub doesnt allow it
jobName=${jobName/hind1970/h}
calibJob=${jobName}c
echo ""
echo $jobName, $calibJob
qsub -N $calibJob /exports/csce/eddie/geos/groups/LURG/models/PLUM/plumv2/scripts/runPlum.sh $1/calib
qsub -N $jobName -hold_jid $calibJob /exports/csce/eddie/geos/groups/LURG/models/PLUM/plumv2/scripts/runPlum.sh $1
#!/bin/sh
if [ "$#" -lt 1 ]; then
echo "Need to specify scenario table file"
exit
fi
filename="$1"
output_dir=/exports/csce/eddie/geos/groups/LURG/models/PLUM/output/hind1970
echo "Starting scenarios in $output_dir"
while read -r datarow
do
IFS=',' read -r -a array <<< "$datarow"
if [ -z "$header" ]; then
header=( "${array[@]}" )
else
ensemble="${array[0]}"
scenario="${array[1]}"
scenario_dir=$output_dir/$ensemble/$scenario
echo $scenario for $ensemble
if [ ! -d "$scenario_dir" ]; then
echo "Scenario $scenario dir is missing, so skipping"
continue;
fi
echo "/exports/csce/eddie/geos/groups/LURG/models/PLUM/plumv2/scripts/runCalibAndPlum.sh hind1970/$ensemble/$scenario"
/exports/csce/eddie/geos/groups/LURG/models/PLUM/plumv2/scripts/runCalibAndPlum.sh hind1970/$ensemble/$scenario
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