Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
s.zitz
JuThinFilm
Commits
2fd74cd5
Commit
2fd74cd5
authored
Sep 14, 2020
by
s.zitz
Browse files
Hopefully hopefully hopefully fixed now
parent
31caac64
Pipeline
#22876
failed with stage
in 5 minutes and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/forcing.jl
View file @
2fd74cd5
...
...
@@ -248,15 +248,15 @@ end
benchres
=
@benchmark
slippage!
(
$
f
.
x
,
$
f
.
y
,
$
mom
.
height
,
$
mom
.
velocity
.
x
,
$
mom
.
velocity
.
y
,
$
col
)
benchtime
=
median
(
benchres
)
.
time
/
10
^
6
t0
=
0.01
+
t0
/
100
*
10
@test
benchtime
≤
t0
t0
=
0.01
@test
benchtime
≤
t0
+
t0
/
100
*
10
end
@testset
"Thermal fluctuations"
begin
col
=
JuThinFilm
.
collisionparams
{
Float64
}(
kᵦT
=
11
/
6
,
μ
=
2.0
)
benchres
=
@benchmark
thermalfluctuations!
(
$
f
,
$
mom
,
$
col
)
benchtime
=
median
(
benchres
)
.
time
/
10
^
6
t0
=
0.01
+
t0
/
100
*
10
@test
benchtime
≤
t0
t0
=
0.01
@test
benchtime
≤
t0
+
t0
/
100
*
10
end
@testset
"Pressure gradient"
begin
pressure
=
reshape
(
collect
(
1.0
:
25.0
),
5
,
5
)
...
...
@@ -271,8 +271,8 @@ end
mag
=
0.001
benchres
=
@benchmark
inclinedplane!
(
$
f
.
x
,
$
f
.
y
,
$
mom
.
height
,
$
t
,
$
mag
,
$
true
,
$
true
)
benchtime
=
median
(
benchres
)
.
time
/
10
^
6
t0
=
0.005
+
t0
/
100
*
10
@test
benchtime
≤
t0
t0
=
0.005
@test
benchtime
≤
t0
+
t0
/
100
*
10
end
@testset
"Summation of forces"
begin
f2
=
default_force
(
Float64
,
5
,
5
)
...
...
@@ -282,7 +282,7 @@ end
f2
.
y
.=
-
0.2
;
f3
.
y
.=
-
0.3
;
f4
.
y
.=
-
0.4
benchres
=
@benchmark
sumforces!
(
$
f
.
x
,
$
f
.
y
,
$
f2
.
x
,
$
f2
.
y
,
$
f3
.
x
,
$
f3
.
y
,
$
f4
.
x
,
$
f4
.
y
)
benchtime
=
median
(
benchres
)
.
time
/
10
^
6
t0
=
0.005
+
t0
/
100
*
10
@test
benchtime
≤
t0
t0
=
0.005
@test
benchtime
≤
t0
+
t0
/
100
*
10
end
end
\ No newline at end of file
Write
Preview
Supports
Markdown
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