From 513429bf0398f640db9a680053380d9d1916b584 Mon Sep 17 00:00:00 2001 From: Alexis Montoison Date: Mon, 20 May 2024 17:42:38 -0400 Subject: [PATCH] Update bilq.jl and qmr.jl --- src/bilq.jl | 4 ++-- src/qmr.jl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bilq.jl b/src/bilq.jl index aa993748f..45a0051ef 100644 --- a/src/bilq.jl +++ b/src/bilq.jl @@ -172,8 +172,8 @@ kwargs_bilq = (:c, :transfer_to_bicg, :M, :N, :ldiv, :atol, :rtol, :itmax, :time @kaxpby!(n, one(FC), b, -one(FC), r₀) end if !MisI - mulorldiv!(p, M, r₀, ldiv) - r₀ = p + mulorldiv!(solver.t, M, r₀, ldiv) + r₀ = solver.t end # Initial solution x₀ and residual norm ‖r₀‖. diff --git a/src/qmr.jl b/src/qmr.jl index d23ab1fdb..a197967a8 100644 --- a/src/qmr.jl +++ b/src/qmr.jl @@ -178,8 +178,8 @@ kwargs_qmr = (:c, :M, :N, :ldiv, :atol, :rtol, :itmax, :timemax, :verbose, :hist @kaxpby!(n, one(FC), b, -one(FC), r₀) end if !MisI - mulorldiv!(p, M, r₀, ldiv) - r₀ = p + mulorldiv!(solver.t, M, r₀, ldiv) + r₀ = solver.t end # Initial solution x₀ and residual norm ‖r₀‖.