From f355271708ffccf6ce293bab80f279a699099584 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Fri, 20 Oct 2023 15:00:59 -0400 Subject: [PATCH] Update src/common.jl --- src/common.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common.jl b/src/common.jl index 5cdecd37e..d76aba5ce 100644 --- a/src/common.jl +++ b/src/common.jl @@ -151,8 +151,8 @@ function SciMLBase.init(prob::LinearProblem, alg::SciMLLinearSolveAlgorithm, end # Guard against type mismatch for user-specified reltol/abstol - reltol = eltype(prob.A)(reltol) - abstol = eltype(prob.A)(abstol) + reltol = eltype(prob.b)(reltol) + abstol = eltype(prob.b)(abstol) cacheval = init_cacheval(alg, A, b, u0, Pl, Pr, maxiters, abstol, reltol, verbose, assumptions)