Skip to content

Commit 4c77e2c

Browse files
committed
Use prob.b instead of prob.A to promote abstol and reltol in case A is an operator
1 parent f355271 commit 4c77e2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ function SciMLBase.init(prob::LinearProblem, alg::SciMLLinearSolveAlgorithm,
115115
args...;
116116
alias_A = default_alias_A(alg, prob.A, prob.b),
117117
alias_b = default_alias_b(alg, prob.A, prob.b),
118-
abstol = default_tol(eltype(prob.A)),
119-
reltol = default_tol(eltype(prob.A)),
118+
abstol = default_tol(eltype(prob.b)),
119+
reltol = default_tol(eltype(prob.b)),
120120
maxiters::Int = length(prob.b),
121121
verbose::Bool = false,
122122
Pl = IdentityOperator(size(prob.A)[1]),

0 commit comments

Comments
 (0)