Skip to content

Commit

Permalink
Fix preconditioning with ldiv=true in BiLQ and QMR
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed May 20, 2024
1 parent 9f25aec commit b7c6774
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bilq.jl
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ kwargs_bilq = (:c, :transfer_to_bicg, :M, :N, :ldiv, :atol, :rtol, :itmax, :time
@kaxpby!(n, one(FC), b, -one(FC), r₀)
end
if !MisI
mul!(p, M, r₀)
mulorldiv!(p, M, r₀, ldiv)
r₀ = p
end

Expand Down
2 changes: 1 addition & 1 deletion src/qmr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ kwargs_qmr = (:c, :M, :N, :ldiv, :atol, :rtol, :itmax, :timemax, :verbose, :hist
@kaxpby!(n, one(FC), b, -one(FC), r₀)
end
if !MisI
mul!(p, M, r₀)
mulorldiv!(p, M, r₀, ldiv)
r₀ = p
end

Expand Down

0 comments on commit b7c6774

Please sign in to comment.