From 5a4b84ccfaf0817a30fa3a44f5315349bba5d0ca Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Mon, 11 Nov 2024 19:55:56 -0100 Subject: [PATCH] Pass on tolerances into the nested nonlinear solve of initialization --- lib/OrdinaryDiffEqCore/src/initialize_dae.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OrdinaryDiffEqCore/src/initialize_dae.jl b/lib/OrdinaryDiffEqCore/src/initialize_dae.jl index e88deeef1a..ebefa3d91c 100644 --- a/lib/OrdinaryDiffEqCore/src/initialize_dae.jl +++ b/lib/OrdinaryDiffEqCore/src/initialize_dae.jl @@ -169,7 +169,7 @@ function _initialize_dae!(integrator, prob::Union{ODEProblem, DAEProblem}, end alg = default_nlsolve(alg.nlsolve, isinplace, initializeprob.u0, initializeprob, isAD) - nlsol = solve(initializeprob, alg) + nlsol = solve(initializeprob, alg, abstol = integrator.opts.abstol, reltol = integrator.opts.reltol) if isinplace === Val{true}() integrator.u .= prob.f.initializeprobmap(nlsol) elseif isinplace === Val{false}()