Skip to content

Commit

Permalink
Merge pull request #2522 from SciML/ChrisRackauckas-patch-8
Browse files Browse the repository at this point in the history
Pass on tolerances into the nested nonlinear solve of initialization
  • Loading branch information
ChrisRackauckas authored Nov 12, 2024
2 parents 3632dc6 + 5a4b84c commit d950241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OrdinaryDiffEqCore/src/initialize_dae.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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}()
Expand Down

0 comments on commit d950241

Please sign in to comment.