Skip to content

Commit 60a45fa

Browse files
feat: support parameter updates in initialize_dae!
1 parent 0428052 commit 60a45fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/initialize_dae.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ function _initialize_dae!(integrator, prob::Union{ODEProblem, DAEProblem},
164164
else
165165
error("Unreachable reached. Report this error.")
166166
end
167+
if isdefined(prob.f, :initializeprobpmap) && prob.f.initializeprobpmap !== nothing
168+
integrator.p = prob.f.initializeprobpmap(prob, nlsol)
169+
end
167170

168171
if nlsol.retcode != ReturnCode.Success
169172
integrator.sol = SciMLBase.solution_new_retcode(integrator.sol,

0 commit comments

Comments
 (0)