Skip to content

Commit

Permalink
Update MINRES and MINRES-QLP
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Nov 25, 2022
1 parent 92bc8d6 commit 243425e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/minres.jl
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,8 @@ function minres!(solver :: MinresSolver{T,FC,S}, A, b :: AbstractVector{FC};
# Stopping conditions based on user-provided tolerances.
tired = iter itmax
ill_cond_lim = (one(T) / Acond ctol)
# We must check that these stopping conditions work with preconditioners
# before we reuse them as stopping conditions.
# solved_lim = (test2 ≤ ε)
# zero_resid_lim = (test1 ≤ ε)
solved_lim = (test2 ε)
zero_resid_lim = MisI && (test1 ε)
resid_decrease_lim = (rNorm ε)
iter window && (fwd_err = err_lbnd etol * sqrt(xENorm²))

Expand Down
2 changes: 1 addition & 1 deletion src/minres_qlp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ function minres_qlp!(solver :: MinresQlpSolver{T,FC,S}, A, b :: AbstractVector{F
# Stopping conditions based on user-provided tolerances.
tired = iter itmax
resid_decrease_lim = (rNorm ε)
zero_resid_lim = (backward ε)
zero_resid_lim = MisI && (backward ε)
breakdown = βₖ₊₁ btol

user_requested_exit = callback(solver) :: Bool
Expand Down

0 comments on commit 243425e

Please sign in to comment.