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
b10b0e0e
Commit
b10b0e0e
authored
2 years ago
by
Reiner Jung
Browse files
Options
Downloads
Patches
Plain Diff
Minor fix
parent
a4c0fd1d
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
models/mitgcm/prepare-models-for-inspection.sh
+1
-1
1 addition, 1 deletion
models/mitgcm/prepare-models-for-inspection.sh
models/uvic/prepare-models-for-inspection.sh
+5
-5
5 additions, 5 deletions
models/uvic/prepare-models-for-inspection.sh
with
6 additions
and
6 deletions
models/mitgcm/prepare-models-for-inspection.sh
+
1
−
1
View file @
b10b0e0e
...
...
@@ -56,7 +56,7 @@ for JOB_DIRECTORY in `find "${OPTIMIZATION_DATA}/jss"* -name '*mitgcm*job'` ; do
rm
-rf
"merge-
${
OPTIMIZED
}
"
mkdir
"merge-
${
OPTIMIZED
}
"
"
${
MOP
}
"
-e
"
${
MODEL_ID
}
-
$OPTIMIZED
-merged"
-i
"original-model"
"
${
OPTIMIZED
}
"
-o
"merge-
${
OPTIMIZED
}
"
-s
all merge
>>
mop.log 2>&1
"
${
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.
models/uvic/prepare-models-for-inspection.sh
+
5
−
5
View file @
b10b0e0e
...
...
@@ -42,7 +42,7 @@ for JOB_DIRECTORY in `find "${OPTIMIZATION_DATA}/jss"* -name '*uvic*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 '*uvic*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