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

Cluster schedule scripts

parent 3f954699
No related branches found
No related tags found
No related merge requests found
...@@ -23,9 +23,15 @@ do ...@@ -23,9 +23,15 @@ do
if [ -z "$header" ]; then if [ -z "$header" ]; then
header=( "${array[@]}" ) header=( "${array[@]}" )
else else
scenario="${array[0]}" ensemble="${array[0]}"
scenario_dir=$output_dir/$scenario scenario="${array[1]}"
echo "$scenario in $scenario_dir" scenario_dir=$output_dir/$ensemble/$scenario
echo "$scenario for $ensemble in $scenario_dir"
if [ ! -d "$output_dir/$ensemble" ]; then
mkdir $output_dir/$ensemble
fi
if [ ! -d "$scenario_dir" ]; then if [ ! -d "$scenario_dir" ]; then
mkdir $scenario_dir mkdir $scenario_dir
mkdir $scenario_dir/calib mkdir $scenario_dir/calib
......
...@@ -5,8 +5,10 @@ if [ $# -ne 1 ]; then ...@@ -5,8 +5,10 @@ if [ $# -ne 1 ]; then
exit 0 exit 0
fi fi
jobName=${1//\/}c # remove slash from path as qsub doesnt allow it jobName=${1//\//_}c # remove slash from path as qsub doesnt allow it
jobName=${jobName/hind1970/h_}
echo $jobName echo $jobName
calibJob=${jobName}_c
qsub -N $jobName /exports/csce/eddie/geos/groups/LURG/models/PLUM/plumv2/scripts/runPlum.sh $1/calib qsub -N $calibJob /exports/csce/eddie/geos/groups/LURG/models/PLUM/plumv2/scripts/runPlum.sh $1/calib
qsub -hold_jid $jobName /exports/csce/eddie/geos/groups/LURG/models/PLUM/plumv2/scripts/runPlum.sh $1 qsub -N $jobName -hold_jid $calibJob /exports/csce/eddie/geos/groups/LURG/models/PLUM/plumv2/scripts/runPlum.sh $1
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