Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ACME-Workflow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
pegasus-isi
ACME-Workflow
Commits
f8a9e675
Commit
f8a9e675
authored
8 years ago
by
Benjamin Mayer
Browse files
Options
Downloads
Patches
Plain Diff
trying all dynamic parameters
parent
ecb99e1f
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
daxgen.py
+12
-1
12 additions, 1 deletion
daxgen.py
dynsetup.sh
+26
-0
26 additions, 0 deletions
dynsetup.sh
with
38 additions
and
1 deletion
daxgen.py
+
12
−
1
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
()
...
...
This diff is collapsed.
Click to expand it.
dynsetup.sh
0 → 100644
+
26
−
0
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
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