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
6ec2ceab
Commit
6ec2ceab
authored
1 year ago
by
Reiner Jung
Browse files
Options
Downloads
Patches
Plain Diff
Update
parent
cee6856f
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
models/handle-model-archives.sh
+10
-2
10 additions, 2 deletions
models/handle-model-archives.sh
models/mitgcm/handle-model-archives.sh
+58
-0
58 additions, 0 deletions
models/mitgcm/handle-model-archives.sh
models/run-architecture-analysis.sh
+1
-0
1 addition, 0 deletions
models/run-architecture-analysis.sh
with
69 additions
and
2 deletions
models/handle-model-archives.sh
+
10
−
2
View file @
6ec2ceab
...
...
@@ -73,12 +73,20 @@ function extract() {
function
restore
()
{
export
MERGED_MODEL_ARCHIVE
=
"
${
JOB_DIRECTORY
}
/merged-models.tar.xz"
tar
-xpf
"
${
MERGED_MODEL_ARCHIVE
}
"
mv
"
${
JOB_DIRECTORY
}
/merged-models/"
*
"
${
JOB_DIRECTORY
}
"
for
I
in
"
${
JOB_DIRECTORY
}
/merged-models/"
*
;
do
if
[
-d
"
$I
"
]
;
then
TARGET
=
`
basename
$I
`
if
[
-d
"
${
JOB_DIRECTORY
}
/
${
TARGET
}
"
]
;
then
rm
-rf
"
${
JOB_DIRECTORY
}
/
${
TARGET
}
"
fi
mv
"
$I
"
"
${
JOB_DIRECTORY
}
"
fi
done
rmdir
merged-models
# xmi and yaml files
export
MODIFICATIONS_ARCHIVE
=
"
${
JOB_DIRECTORY
}
/modifications.tar.xz"
tar
-xpf
"
${
MODIFICATIONS_ARCHIVE
}
"
mv
modifications/
*
.
mv
-f
modifications/
*
.
rmdir
modifications
}
...
...
This diff is collapsed.
Click to expand it.
models/mitgcm/handle-model-archives.sh
0 → 100755
+
58
−
0
View file @
6ec2ceab
#!/bin/bash
export
BASE_DIR
=
$(
cd
"
$(
dirname
"
$0
"
)
"
;
pwd
)
.
"
${
BASE_DIR
}
/../../common-functions.rc"
if
[
-f
"
${
BASE_DIR
}
/../config"
]
;
then
.
"
${
BASE_DIR
}
/../config"
else
echo
"Main config file not found."
exit
1
fi
if
[
-f
"
$BASE_DIR
/config"
]
;
then
.
$BASE_DIR
/config
else
echo
"Config file not found."
exit
1
fi
export
JAVA_OPTS
=
"-Dlogback.configurationFile=
${
BASE_DIR
}
/logback.xml"
checkDirectory
"Result directory"
"
${
OPTIMIZATION_DATA
}
"
for
JOB_DIRECTORY
in
`
find
"
${
OPTIMIZATION_DATA
}
/jss"
*
-name
'*uvic*job'
`
;
do
BASENAME
=
`
basename
$JOB_DIRECTORY
`
information
"----------------------------------------"
information
$BASENAME
information
"----------------------------------------"
export
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
}
"
if
[
-f
"
${
ORIGINAL_ARCHIVE
}
"
]
&&
[
-f
"
${
OPTIMIZED_ARCHIVE
}
"
]
;
then
tar
-xpf
"
${
ORIGINAL_ARCHIVE
}
"
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
warning
"No data."
fi
done
This diff is collapsed.
Click to expand it.
models/run-architecture-analysis.sh
+
1
−
0
View file @
6ec2ceab
...
...
@@ -22,6 +22,7 @@ if [ "$2" != "" ] ; then
export
MODEL
=
"
$2
"
else
echo
"Missing model identifier"
exit
fi
export
JAVA_OPTS
=
"-Dlogback.configurationFile=
${
BASE_DIR
}
/logback.xml"
...
...
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