From 9b46ba394cee7683539bfae0214e94d3c668b075 Mon Sep 17 00:00:00 2001 From: Avik Pal Date: Sun, 31 Mar 2024 00:05:27 -0400 Subject: [PATCH] Update the GPU tests --- test/gpu/termination_conditions.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/gpu/termination_conditions.jl b/test/gpu/termination_conditions.jl index d0811a311..29b24bb95 100644 --- a/test/gpu/termination_conditions.jl +++ b/test/gpu/termination_conditions.jl @@ -14,6 +14,9 @@ const TERMINATION_CONDITIONS = [ @testset "Termination Conditions: Allocations" begin @testset "Mode: $(tcond)" for tcond in TERMINATION_CONDITIONS - @test_nowarn DiffEqBase.check_convergence(tcond, du, u, uprev, 1e-3, 1e-3) + for nfn in (Base.Fix1(maximum, abs), Base.Fix2(norm, 2), Base.Fix2(norm, Inf)) + tcond = DiffEqBase.set_termination_mode_internalnorm(tcond, nfn) + @test_nowarn DiffEqBase.check_convergence(tcond, du, u, uprev, 1e-3, 1e-3) + end end end