Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Jan 20, 2025
1 parent ac27e09 commit eca3556
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_cr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@

# Test with Jacobi (or diagonal) preconditioner
A, b, M = square_preconditioned(FC=FC)
(x, stats) = cr(A, b, M=M, atol=1e-10, rtol=0.0, verbose=1)
(x, stats) = cr(A, b, M=M)
r = b - A * x
resid = sqrt(real(dot(r, M * r))) / sqrt(real(dot(b, M * b)))
@test(resid cr_tol)
@test(resid 10 * cr_tol)
@test(stats.solved)

# test callback function
Expand Down

0 comments on commit eca3556

Please sign in to comment.