Skip to content

Commit 9b46ba3

Browse files
committed
Update the GPU tests
1 parent 7346594 commit 9b46ba3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/gpu/termination_conditions.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ const TERMINATION_CONDITIONS = [
1414

1515
@testset "Termination Conditions: Allocations" begin
1616
@testset "Mode: $(tcond)" for tcond in TERMINATION_CONDITIONS
17-
@test_nowarn DiffEqBase.check_convergence(tcond, du, u, uprev, 1e-3, 1e-3)
17+
for nfn in (Base.Fix1(maximum, abs), Base.Fix2(norm, 2), Base.Fix2(norm, Inf))
18+
tcond = DiffEqBase.set_termination_mode_internalnorm(tcond, nfn)
19+
@test_nowarn DiffEqBase.check_convergence(tcond, du, u, uprev, 1e-3, 1e-3)
20+
end
1821
end
1922
end

0 commit comments

Comments
 (0)