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
8faf5f42
Commit
8faf5f42
authored
5 years ago
by
Peter Alexander
Browse files
Options
Downloads
Patches
Plain Diff
Pass 'prune' flag from scheduleScenarios.sh to runPlum.sh
parent
92e814c7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
data/shockProbabilities.csv
+5
-5
5 additions, 5 deletions
data/shockProbabilities.csv
scripts/scheduleScenarios.sh
+11
-3
11 additions, 3 deletions
scripts/scheduleScenarios.sh
with
16 additions
and
8 deletions
data/shockProbabilities.csv
+
5
−
5
View file @
8faf5f42
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
This diff is collapsed.
Click to expand it.
scripts/scheduleScenarios.sh
+
11
−
3
View file @
8faf5f42
#!/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
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