Skip to content

Commit 0c05f4d

Browse files
authored
Merge pull request #192 from WaterLily-jl/fix_GPU_test
Fixed Circle in accelerating flow on GPU test
2 parents 6a9eef6 + 06b9495 commit 0c05f4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/maintests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,12 +303,12 @@ end
303303

304304
@testset "Circle in accelerating flow" begin
305305
for f arrays
306-
make_accel_circle(radius=32,H=16) = Simulation(radius.*(2H,2H),
306+
make_accel_circle(radius=32,H=16) = Simulation(radius.*(2H,2H),
307307
(i,t)-> i==1 ? t : zero(t), radius; U=1, mem=f,
308308
body=AutoBody((x,t)->sum(abs2,x .-H*radius)-radius))
309309
sim = make_accel_circle(); sim_step!(sim)
310310
@test isapprox(WaterLily.pressure_force(sim)/*sim.L^2),[-1,0],atol=0.04)
311-
@test maximum(sim.flow.u)/sim.flow.u[2,2,1] > 1.91 # ≈ 2U
311+
@test GPUArrays.@allowscalar maximum(sim.flow.u)/sim.flow.u[2,2,1] > 1.91 # ≈ 2U
312312
foreach(i->sim_step!(sim),1:3)
313313
@test all(sim.pois.n .≤ 2)
314314
@test !any(isnan.(sim.pois.n))

0 commit comments

Comments
 (0)