Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
esm-architecture-analysis-replication-package
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oceandsl
esm-architecture-analysis-replication-package
Commits
a4c0fd1d
Commit
a4c0fd1d
authored
2 years ago
by
Reiner Jung
Browse files
Options
Downloads
Patches
Plain Diff
Minor fixes.
parent
0c35ab29
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
models/mitgcm/prepare-models-for-inspection.sh
+5
-5
5 additions, 5 deletions
models/mitgcm/prepare-models-for-inspection.sh
with
5 additions
and
5 deletions
models/mitgcm/prepare-models-for-inspection.sh
+
5
−
5
View file @
a4c0fd1d
...
...
@@ -42,7 +42,7 @@ for JOB_DIRECTORY in `find "${OPTIMIZATION_DATA}/jss"* -name '*mitgcm*job'` ; do
cd
"
${
JOB_DIRECTORY
}
"
if
[
-f
"med-output.csv"
]
;
then
cat
"
${
BASE_DIR
}
/template.project"
|
sed
"s/NAME/
$NAME
-original/g"
>
"
${
JOB_DIRECTORY
}
/
original-model/.project"
cat
"
${
BASE_DIR
}
/template.project"
|
sed
"s/NAME/
$NAME
-original/g"
>
"original-model/.project"
for
J
in
`
cat
"med-output.csv"
|
sed
's/;/\t/g'
|
awk
'{ print $3","$1","$2 }'
|
sed
's/^\([0-9],\)/00\1/'
|
sed
's/^\([0-9]\{2\},\)/0\1/'
|
sort
`
;
do
ORIGINAL
=
`
echo
"
$J
"
|
cut
-d
,
-f2
|
sed
's/"//g'
`
...
...
@@ -51,12 +51,12 @@ for JOB_DIRECTORY in `find "${OPTIMIZATION_DATA}/jss"* -name '*mitgcm*job'` ; do
echo
"
$ORIGINAL
->
$OPTIMIZED
in
$STEPS
"
cat
"
${
BASE_DIR
}
/template.project"
|
sed
"s/NAME/
${
MODEL_ID
}
-
$OPTIMIZED
/g"
>
"
$
{
JOB_DIRECTORY
}
/
$
OPTIMIZED
/.project"
cat
"
${
BASE_DIR
}
/template.project"
|
sed
"s/NAME/
${
MODEL_ID
}
-
$OPTIMIZED
/g"
>
"
$OPTIMIZED
/.project"
rm
-rf
"
${
JOB_DIRECTORY
}
/
merge-
${
OPTIMIZED
}
"
mkdir
"
${
JOB_DIRECTORY
}
/
merge-
${
OPTIMIZED
}
"
rm
-rf
"merge-
${
OPTIMIZED
}
"
mkdir
"merge-
${
OPTIMIZED
}
"
${
MOP
}
-e
${
MODEL_ID
}
-
$OPTIMIZED
-merged
-i
"original-model"
"
${
OPTIMIZED
}
"
-o
"merge-
${
OPTIMIZED
}
"
-s
all merge
"
${
MOP
}
"
-e
"
${
MODEL_ID
}
-
$OPTIMIZED
-merged
"
-i
"original-model"
"
${
OPTIMIZED
}
"
-o
"merge-
${
OPTIMIZED
}
"
-s
all merge
>>
mop.log 2>&1
done
else
error
"Missing MED output for job
$BASENAME
"
...
...
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