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
GitLab 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
3fbbd6cd
Commit
3fbbd6cd
authored
Jun 23, 2023
by
Reiner Jung
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup of compare model scripts.
parent
57e41436
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
models/mitgcm/compare-models.sh
+10
-5
10 additions, 5 deletions
models/mitgcm/compare-models.sh
models/uvic/compare-models.sh
+25
-10
25 additions, 10 deletions
models/uvic/compare-models.sh
with
35 additions
and
15 deletions
models/mitgcm/compare-models.sh
+
10
−
5
View file @
3fbbd6cd
...
@@ -11,18 +11,19 @@ else
...
@@ -11,18 +11,19 @@ else
exit
1
exit
1
fi
fi
export
JAVA_OPTS
=
"-Dlogback.configurationFile=
${
BASE_DIR
}
/logback.xml"
checkExecutable
"Restructuring"
"
${
RESTRUCTURING
}
"
checkExecutable
"Restructuring"
"
${
RESTRUCTURING
}
"
checkDirectory
"Result directory"
"
${
OPTIMIZATION_DATA
}
"
checkDirectory
"Result directory"
"
${
OPTIMIZATION_DATA
}
"
# main
# main
for
JOB_DIRECTORY
in
`
find
"
${
OPTIMIZATION_DATA
}
/jss"
*
-name
'*mitgcm*job'
`
;
do
for
JOB
in
`
find
"
${
OPTIMIZATION_DATA
}
/jss"
*
-name
'*mitgcm*job'
`
;
do
BASENAME
=
`
basename
"
${
JOB_DIRECTORY
}
"
`
BASENAME
=
`
basename
"
${
JOB
}
"
`
information
"----------------------------------------"
information
"----------------------------------------"
information
$BASENAME
information
$BASENAME
information
"----------------------------------------"
information
"----------------------------------------"
export
JOB_DIRECTORY
=
"
${
JOB
}
"
export
JOB_DIRECTORY
checkDirectory
"job directory"
"
${
JOB_DIRECTORY
}
"
checkDirectory
"job directory"
"
${
JOB_DIRECTORY
}
"
...
@@ -58,7 +59,11 @@ for JOB in `find "${OPTIMIZATION_DATA}/jss"* -name '*mitgcm*job'` ; do
...
@@ -58,7 +59,11 @@ for JOB in `find "${OPTIMIZATION_DATA}/jss"* -name '*mitgcm*job'` ; do
LIST
=
"
$LIST
$J
"
LIST
=
"
$LIST
$J
"
fi
fi
done
done
"
${
RESTRUCTURING
}
"
-i
"
${
ORIGINAL
}
"
$LIST
-o
"
${
JOB_DIRECTORY
}
"
-e
demo
-s
kuhn
"
${
RESTRUCTURING
}
"
-i
"
${
ORIGINAL
}
"
$LIST
-o
"
${
JOB_DIRECTORY
}
"
-e
compare
-s
kuhn
for
K
in
$LIST
;
do
OPTIMIZED
=
`
basename
$K
`
"
${
DELTA
}
"
-i
"
${
JOB_DIRECTORY
}
/original-model-
${
OPTIMIZED
}
.xmi"
-o
"
${
JOB_DIRECTORY
}
/original-model-
${
OPTIMIZED
}
"
done
fi
fi
done
done
...
...
This diff is collapsed.
Click to expand it.
models/uvic/compare-models.sh
+
25
−
10
View file @
3fbbd6cd
...
@@ -17,31 +17,46 @@ checkExecutable "Restructuring" "${RESTRUCTURING}"
...
@@ -17,31 +17,46 @@ checkExecutable "Restructuring" "${RESTRUCTURING}"
checkDirectory
"Result directory"
"
${
OPTIMIZATION_DATA
}
"
checkDirectory
"Result directory"
"
${
OPTIMIZATION_DATA
}
"
# main
# main
for
J
in
`
find
"
${
OPTIMIZATION_DATA
}
/jss"
*
-name
'*uvic*job'
`
;
do
for
J
OB_DIRECTORY
in
`
find
"
${
OPTIMIZATION_DATA
}
/jss"
*
-name
'*uvic*job'
`
;
do
BASENAME
=
`
basename
$J
`
BASENAME
=
`
basename
$J
OB_DIRECTORY
`
information
"----------------------------------------"
information
"----------------------------------------"
information
$BASENAME
information
$BASENAME
information
"----------------------------------------"
information
"----------------------------------------"
export
JOB_DIRECTORY
=
"
$J
"
export
JOB_DIRECTORY
checkDirectory
"job directory"
"
${
JOB_DIRECTORY
}
"
checkDirectory
"job directory"
"
${
JOB_DIRECTORY
}
"
export
ORIGINAL_ARCHIVE
=
"
${
JOB_DIRECTORY
}
/optimized-models.tar.xz"
export
OPTIMIZED_ARCHIVE
=
"
${
JOB_DIRECTORY
}
/original-model.tar.xz"
export
COMBINED_ARCHIVE
=
"
${
JOB_DIRECTORY
}
/kieker-repositories.tar.xz"
cd
"
${
JOB_DIRECTORY
}
"
cd
"
${
JOB_DIRECTORY
}
"
if
[
-f
"kieker-repositories.tar.xz"
]
;
then
if
[
-f
"
${
ORIGINAL_ARCHIVE
}
"
]
&&
[
-f
"
${
OPTIMIZED_ARCHIVE
}
"
]
;
then
tar
-xpf
kieker-repositories.tar.xz
tar
-xpf
"
${
ORIGINAL_ARCHIVE
}
"
mv
kieker-repositories/
*
.
tar
-xpf
"
${
OPTIMIZED_ARCHIVE
}
"
elif
[
-f
"
${
COMBINED_ARCHIVE
}
"
]
;
then
rm
-rf
"
${
JOB_DIRECTORY
}
/original-model"
for
J
in
"
${
JOB_DIRECTORY
}
/optimized-"
*
;
do
if
[
-d
"
$J
"
]
;
then
rm
-rf
"
$J
"
fi
done
tar
-xpf
"
${
COMBINED_ARCHIVE
}
"
mv
"
${
JOB_DIRECTORY
}
/kieker-repositories/"
*
.
else
echo
"No data."
fi
fi
ORIGINAL
=
"original-model"
ORIGINAL
=
"
${
JOB_DIRECTORY
}
/
original-model"
if
[
-d
"
${
ORIGINAL
}
"
]
;
then
if
[
-d
"
${
ORIGINAL
}
"
]
;
then
LIST
=
""
LIST
=
""
for
K
in
"optimized-"
*
;
do
for
J
in
"
${
JOB_DIRECTORY
}
/
optimized-"
*
;
do
if
[
-d
"
$
K
"
]
;
then
if
[
-d
"
$
J
"
]
;
then
LIST
=
"
$LIST
$
K
"
LIST
=
"
$LIST
$
J
"
fi
fi
done
done
"
${
RESTRUCTURING
}
"
-i
"
${
ORIGINAL
}
"
$LIST
-o
"
${
JOB_DIRECTORY
}
"
-e
compare
-s
kuhn
"
${
RESTRUCTURING
}
"
-i
"
${
ORIGINAL
}
"
$LIST
-o
"
${
JOB_DIRECTORY
}
"
-e
compare
-s
kuhn
...
...
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
sign in
to comment