Skip to content

Commit

Permalink
update tests usymlq and usymqr
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffroyleconte authored and amontoison committed Jun 9, 2022
1 parent ecbf7b4 commit 80bea76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions test/test_usymlq.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@
@test(stats.solved)

# test callback function
A, b = over_consistent(FC=FC)
A, b = sparse_laplacian(FC=FC)
c = copy(b)
solver = UsymlqSolver(A, b)
c = similar(b, size(A, 2))
tol = 1.0e-1
tol = 1.0
cb_n2 = TestCallbackN2(A, b, tol = tol)
usymlq!(solver, A, b, c, atol = 0.0, rtol = 0.0, callback = solver -> cb_n2(solver))
@test solver.stats.status == "user-requested exit"
Expand Down
6 changes: 3 additions & 3 deletions test/test_usymqr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@
@test(stats.solved)

# test callback function
A, b = over_consistent(FC=FC)
A, b = sparse_laplacian(FC=FC)
c = copy(b)
solver = UsymqrSolver(A, b)
c = similar(b, size(A, 2))
tol = 1.0e-1
tol = 1.0e0
cb_n2 = TestCallbackN2(A, b, tol = tol)
usymqr!(solver, A, b, c, atol = 0.0, rtol = 0.0, callback = solver -> cb_n2(solver))
@test solver.stats.status == "user-requested exit"
Expand Down

0 comments on commit 80bea76

Please sign in to comment.