Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
dg
dg
Commits
60153df8
Commit
60153df8
authored
Sep 20, 2017
by
Jonathan Lambrechts
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ekman
parent
ab8fbe7b
Pipeline
#2430
failed with stage
in 36 minutes and 31 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
0 deletions
+44
-0
benchmarks/ekman_prod/extract.py
benchmarks/ekman_prod/extract.py
+23
-0
benchmarks/ekman_prod/submit-0.05.sh
benchmarks/ekman_prod/submit-0.05.sh
+21
-0
No files found.
benchmarks/ekman_prod/extract.py
0 → 100644
View file @
60153df8
import
glob
import
numpy
as
np
all
=
glob
.
glob
(
"scratch/*/*/vorticity_log"
)
fo
=
open
(
"resulttab.txt"
,
"w"
)
n
=
0
for
fname
in
all
:
txt
=
open
(
fname
,
"r"
).
read
().
splitlines
()
if
txt
[
-
1
]
!=
"success"
:
print
(
fname
)
continue
v
=
{}
for
l
in
txt
:
w
=
l
.
split
()
if
len
(
w
)
<
2
:
continue
if
w
[
0
]
==
"geo"
or
w
[
0
]
==
"2d"
:
v
[
w
[
0
]]
=
w
[
3
]
else
:
v
[
w
[
0
]]
=
w
[
1
]
fo
.
write
(
" "
.
join
((
v
[
"Ek"
],
v
[
"C"
],
v
[
"D"
],
v
[
"geo"
],
v
[
"2d"
]))
+
"
\n
"
)
n
+=
1
print
(
n
,
len
(
all
))
benchmarks/ekman_prod/submit-0.05.sh
0 → 100644
View file @
60153df8
#!/bin/bash
#SBATCH --job-name=ekman-0.05
#SBATCH --output=ekman.txt
#SBATCH --ntasks 64
#SBATCH --time 24:00:00
#SBATCH --mem-per-cpu=2000
WDIR
=
$GLOBALSCRATCH
/ekman
mkdir
-p
$WDIR
range
=
"0.05"
#rangew="0e-5 1e-5 2e-5 3e-5 4e-5 5e-5 6e-5 7e-5 8e-5 9e-5 10e-5"
rangew
=
"-10e-5 -8e-5 -6e-5 -4e-5 -2e-5 0e-5 2e-5 4e-5 6e-5 8e-5 10e-5"
for
E
in
$range
;
do
for
C
in
$rangew
;
do
for
D
in
$rangew
;
do
dir
=
$WDIR
/
${
E
}
/
${
C
}
_
${
D
}
srun
-n1
--exclusive
bash
-c
"echo
$dir
; mkdir -p
$dir
; cp test.py box2d.msh box2d.geo
$dir
; cd
$dir
; python3 test.py
$E
$C
$D
&> log"
&
done
done
done
wait
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment