Skip to content

Commit

Permalink
feat: support parameter updates in initialize_dae!
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Aug 6, 2024
1 parent 0428052 commit 60a45fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/initialize_dae.jl
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ function _initialize_dae!(integrator, prob::Union{ODEProblem, DAEProblem},
else
error("Unreachable reached. Report this error.")
end
if isdefined(prob.f, :initializeprobpmap) && prob.f.initializeprobpmap !== nothing
integrator.p = prob.f.initializeprobpmap(prob, nlsol)
end

if nlsol.retcode != ReturnCode.Success
integrator.sol = SciMLBase.solution_new_retcode(integrator.sol,
Expand Down

0 comments on commit 60a45fa

Please sign in to comment.