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
211475c2
Commit
211475c2
authored
10 years ago
by
Juve, Gideon
Browse files
Options
Downloads
Patches
Plain Diff
Use output directories instead of tar files
parent
c69ff078
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bin/acme-output.sh
+9
-5
9 additions, 5 deletions
bin/acme-output.sh
daxgen.py
+4
-2
4 additions, 2 deletions
daxgen.py
templates/diag140804.csh
+2
-2
2 additions, 2 deletions
templates/diag140804.csh
with
15 additions
and
9 deletions
bin/acme-output.sh
+
9
−
5
View file @
211475c2
...
...
@@ -41,16 +41,20 @@ RUNDIR=$(cd $RUNDIR && pwd)
# Get the workflow scratch directory
DIR
=
$(
pwd
)
# The tar works better from the run dir
cd
$RUNDIR
# Make the stage output dir
STAGEDIR
=
$DIR
/
${
CASE
}
-stage
${
STAGE
}
mkdir
$STAGEDIR
# Touch this file here so that it will always exist, even if it is empty
# for the first stage
touch
outputs_to_ignore
# Tar up all the output files, but ignore outputs from previous stages
tar
-czv
-f
$DIR
/
${
CASE
}
.stage
${
STAGE
}
.tar.gz
-X
outputs_to_ignore
${
CASE
}
.
*
rpointer.
*
*
.log.
*
.gz
# For each of the new files
for
f
in
$(
ls
${
RUNDIR
}
/
${
CASE
}
.
*
${
RUNDIR
}
/
*
.log.
*
.gz
${
RUNDIR
}
/rpointer.
*
|
grep
-v
-f
outputs_to_ignore
)
;
do
# Symlink it to the output dir
ln
-s
$f
${
STAGEDIR
}
/
$(
basename
$f
)
done
# Update the ignore file to ignore outputs from the current stage
ls
${
CASE
}
.
*
*
.log.
*
>
outputs_to_ignore
ls
${
RUNDIR
}
/
${
CASE
}
.
*
${
RUNDIR
}
/
*
.log.
*
>
outputs_to_ignore
This diff is collapsed.
Click to expand it.
daxgen.py
+
4
−
2
View file @
211475c2
...
...
@@ -149,7 +149,8 @@ tr acme-amwg {
if
last
is
not
None
:
dax
.
depends
(
stage
,
last
)
output
=
File
(
"
%s.stage%s.tar.gz
"
%
(
self
.
casename
,
i
))
# This is actually a directory
output
=
File
(
"
%s-stage%s
"
%
(
self
.
casename
,
i
))
archive
=
Job
(
name
=
"
acme-output
"
)
archive
.
addArguments
(
"
-stage %s
"
%
i
)
...
...
@@ -177,7 +178,8 @@ tr acme-amwg {
script_name
=
self
.
generate_amwg_script
(
i
,
first_yr
,
nyrs
)
script
=
File
(
script_name
)
diagnostics
=
File
(
"
amwg-stage%s
"
%
i
)
# This is actually a directory
diagnostics
=
File
(
"
%s-amwg-stage%s
"
%
(
self
.
casename
,
i
))
# Add the job
diag
=
Job
(
name
=
"
acme-amwg
"
)
...
...
This diff is collapsed.
Click to expand it.
templates/diag140804.csh
+
2
−
2
View file @
211475c2
...
...
@@ -112,8 +112,8 @@ set test_filetype = monthly_history
#set test_path_climo = /glade/scratch/hannay/amwg/climo/$test_casename/
#set test_path_diag = /glade/scratch/hannay/amwg/diag/$test_casename/
set test_path_history = $PWD/run/
set test_path_climo = $PWD/amwg-stage{{stage}}/
set test_path_diag = $PWD/amwg-stage{{stage}}/
set test_path_climo = $PWD/
{{casename}}-
amwg-stage{{stage}}/
set test_path_diag = $PWD/
{{casename}}-
amwg-stage{{stage}}/
set test_path_HPSS = $test_path_history
#******************************************************************
...
...
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