Skip to content

Commit 50bf5a6

Browse files
committed
Sharpen idrs-pre test
1 parent 4a414d5 commit 50bf5a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/idrs.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ end
5151
@test history.isconverged
5252
@test norm(A * x - b) / norm(b) reltol
5353

54-
Apre = lu(A)
54+
Apre = lu(droptol!(copy(A), 0.1)) # inexact preconditioner
5555
xpre, historypre = idrs(A, b, Pl = Apre, log=true)
5656
@test historypre.isconverged
5757
@test norm(A * xpre - b) / norm(b) reltol
5858

5959
@test isapprox(x, xpre, rtol = 1e-3)
60-
@test historypre.iters < history.iters
60+
@test historypre.iters < 0.5history.iters
6161

6262
end
6363

0 commit comments

Comments
 (0)