From 1c60e7577d5d081716254cc823c929decb0b4e60 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Thu, 4 Dec 2025 04:07:15 -0500 Subject: [PATCH] Update reltol and abstol handling for odd (dual) number types This isn't a complete solution but one required change for downstream, tests are downstream though one will be added here shortly. --- src/common.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common.jl b/src/common.jl index 4141616f6..87432d26b 100644 --- a/src/common.jl +++ b/src/common.jl @@ -357,8 +357,8 @@ function __init(prob::LinearProblem, alg::SciMLLinearSolveAlgorithm, u0_ = u0 !== nothing ? u0 : __init_u0_from_Ab(A, b) # Guard against type mismatch for user-specified reltol/abstol - reltol = real(eltype(prob.b))(reltol) - abstol = real(eltype(prob.b))(abstol) + reltol = real(eltype(prob.b))(SciMLBase.value(reltol)) + abstol = real(eltype(prob.b))(SciMLBase.value(abstol)) precs = if hasproperty(alg, :precs) isnothing(alg.precs) ? DEFAULT_PRECS : alg.precs