Skip to content

Commit 3385cae

Browse files
committed
rtol in convergence test
1 parent 223fec3 commit 3385cae

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/runtests.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,10 @@ function test_precon(Precon,k,l,m;maxiter=10000)
170170
all(x-> x<1,r[end-100:end]./r[end-101:end-1]),norm(it-exact)
171171
end
172172

173-
Base.isapprox(a::Tuple, b::Tuple) = all( a.≈ b )
174173

175174
@testset "preconditioners" begin
176-
@test test_precon(ILU0Preconditioner,20,20,20) (true,1.3535160424212675e-5)
177-
@test test_precon(JacobiPreconditioner,20,20,20) (true, 2.0406032775945658e-5)
178-
@test test_precon(ParallelJacobiPreconditioner,20,20,20) (true, 2.0406032775945658e-5)
175+
@test all(isapprox.(test_precon(ILU0Preconditioner,20,20,20), (true, 1.3535160424212675e-5), rtol=1.0e-5))
176+
@test all(isapprox.(test_precon(JacobiPreconditioner,20,20,20), (true, 2.0406032775945658e-5), rtol=1.0e-5))
177+
@test all(isapprox.(test_precon(ParallelJacobiPreconditioner,20,20,20), (true, 2.0406032775945658e-5), rtol=1.0e-5))
179178
end
180179

0 commit comments

Comments
 (0)