Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
pegasus-isi
ACME-Workflow
Commits
f8a9e675
Commit
f8a9e675
authored
Mar 23, 2016
by
Benjamin Mayer
Browse files
trying all dynamic parameters
parent
ecb99e1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
daxgen.py
View file @
f8a9e675
...
...
@@ -40,7 +40,13 @@ class ACMEWorkflow(object):
self
.
mppwidth
=
config
.
get
(
"acme"
,
"mppwidth"
)
self
.
stop_option
=
config
.
get
(
"acme"
,
"stop_option"
)
self
.
stop_n
=
[
x
.
strip
()
for
x
in
config
.
get
(
"acme"
,
"stop_n"
).
split
(
","
)]
self
.
walltime
=
[
x
.
strip
()
for
x
in
config
.
get
(
"acme"
,
"walltime"
).
split
(
","
)]
self
.
walltime
=
[
x
.
strip
()
for
x
in
config
.
get
(
"acme"
,
"walltime"
).
split
(
","
)
self
.
res
=
config
.
get
(
"acme"
,
"res"
)
self
.
compiler
=
config
.
get
(
"acme"
,
"compiler"
)
self
.
project
=
config
.
get
(
"acme"
,
"project"
)
self
.
compset
=
config
.
get
(
"acme"
,
"compset"
)
self
.
mach
=
config
.
get
(
"acme"
,
"mach"
)
if
len
(
self
.
stop_n
)
!=
len
(
self
.
walltime
):
raise
Exception
(
"stop_n should have the same number of entries as walltime"
)
...
...
@@ -50,6 +56,11 @@ class ACMEWorkflow(object):
f
=
open
(
path
,
"w"
)
try
:
f
.
write
(
"CASENAME=%s"
%
self
.
casename
)
f
.
write
(
"MACH=%s"
%
self
.
mach
)
f
.
write
(
"RES=%s"
%
self
.
res
)
f
.
write
(
"COMPILER=%s"
%
self
.
compiler
)
f
.
write
(
"PROJECT=%s"
%
self
.
project
)
f
.
write
(
"COMPSET=%s"
%
self
.
compset
)
finally
:
f
.
close
()
...
...
dynsetup.sh
0 → 100644
View file @
f8a9e675
#!/bin/bash
# This is an example ACME setup script. The workflow runs this script with
# several environment variables:
#
# ACMEROOT: This is the path to the ACME/CESM source code
# CASENAME: The name of the case
# CASEROOT: This is the path to the case directory
#
# This script should run create_newcase, cesm_setup and $CASENAME.build.
#
set
-e
$ACMEROOT
/cime/scripts/create_newcase
-case
$CASEROOT
-mach
$MACH
-compset
$COMPSET
-res
$RES
-project
$PROJECT
-compiler
$COMPILER
cd
$CASEROOT
# Set the directory for executables
./xmlchange
-file
env_build.xml
-id
EXEROOT
-val
$CASEROOT
/bld
# Set the run directory
./xmlchange
-file
env_run.xml
-id
RUNDIR
-val
$CASEROOT
/run
./cesm_setup
./
$CASENAME
.build
||
true
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment