Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PLUM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Land Use Lab
PLUM
Commits
bde7c917
Commit
bde7c917
authored
7 years ago
by
Peter Alexander
Browse files
Options
Downloads
Patches
Plain Diff
More cluster script changes
parent
d60caf17
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/runCalibAndPlum.sh
+5
-4
5 additions, 4 deletions
scripts/runCalibAndPlum.sh
scripts/scheduleHindScenarios.sh
+34
-0
34 additions, 0 deletions
scripts/scheduleHindScenarios.sh
with
39 additions
and
4 deletions
scripts/runCalibAndPlum.sh
+
5
−
4
View file @
bde7c917
...
...
@@ -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
This diff is collapsed.
Click to expand it.
scripts/scheduleHindScenarios.sh
0 → 100755
+
34
−
0
View file @
bde7c917
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment