Skip to content

Commit f355271

Browse files
Update src/common.jl
1 parent e214453 commit f355271

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
@@ -151,8 +151,8 @@ function SciMLBase.init(prob::LinearProblem, alg::SciMLLinearSolveAlgorithm,
151151
end
152152

153153
# Guard against type mismatch for user-specified reltol/abstol
154-
reltol = eltype(prob.A)(reltol)
155-
abstol = eltype(prob.A)(abstol)
154+
reltol = eltype(prob.b)(reltol)
155+
abstol = eltype(prob.b)(abstol)
156156

157157
cacheval = init_cacheval(alg, A, b, u0, Pl, Pr, maxiters, abstol, reltol, verbose,
158158
assumptions)

0 commit comments

Comments
 (0)