Commit 2fd74cd5 authored by s.zitz's avatar s.zitz
Browse files

Hopefully hopefully hopefully fixed now

parent 31caac64
Pipeline #22876 failed with stage
in 5 minutes and 37 seconds
...@@ -248,15 +248,15 @@ end ...@@ -248,15 +248,15 @@ end
benchres = @benchmark slippage!($f.x, $f.y, $mom.height, $mom.velocity.x, $mom.velocity.y, $col) benchres = @benchmark slippage!($f.x, $f.y, $mom.height, $mom.velocity.x, $mom.velocity.y, $col)
benchtime = median(benchres).time/10^6 benchtime = median(benchres).time/10^6
t0 = 0.01 + t0/100*10 t0 = 0.01
@test benchtime t0 @test benchtime t0 + t0/100*10
end end
@testset "Thermal fluctuations" begin @testset "Thermal fluctuations" begin
col = JuThinFilm.collisionparams{Float64}(kᵦT=11/6, μ=2.0) col = JuThinFilm.collisionparams{Float64}(kᵦT=11/6, μ=2.0)
benchres = @benchmark thermalfluctuations!($f, $mom, $col) benchres = @benchmark thermalfluctuations!($f, $mom, $col)
benchtime = median(benchres).time/10^6 benchtime = median(benchres).time/10^6
t0 = 0.01 + t0/100*10 t0 = 0.01
@test benchtime t0 @test benchtime t0 + t0/100*10
end end
@testset "Pressure gradient" begin @testset "Pressure gradient" begin
pressure = reshape(collect(1.0:25.0),5,5) pressure = reshape(collect(1.0:25.0),5,5)
...@@ -271,8 +271,8 @@ end ...@@ -271,8 +271,8 @@ end
mag = 0.001 mag = 0.001
benchres = @benchmark inclinedplane!($f.x, $f.y, $mom.height, $t, $mag, $true, $true) benchres = @benchmark inclinedplane!($f.x, $f.y, $mom.height, $t, $mag, $true, $true)
benchtime = median(benchres).time/10^6 benchtime = median(benchres).time/10^6
t0 = 0.005 + t0/100*10 t0 = 0.005
@test benchtime t0 @test benchtime t0 + t0/100*10
end end
@testset "Summation of forces" begin @testset "Summation of forces" begin
f2 = default_force(Float64,5,5) f2 = default_force(Float64,5,5)
...@@ -282,7 +282,7 @@ end ...@@ -282,7 +282,7 @@ end
f2.y .= -0.2; f3.y .= -0.3; f4.y .= -0.4 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) 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 benchtime = median(benchres).time/10^6
t0 = 0.005 + t0/100*10 t0 = 0.005
@test benchtime t0 @test benchtime t0 + t0/100*10
end end
end end
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment