Skip to content

Commit

Permalink
fixup! feat: support parameter updates in initialize_dae!
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Sep 26, 2024
1 parent f66560f commit b297f09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/OrdinaryDiffEqCore/src/initialize_dae.jl
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ end
function _initialize_dae!(integrator, prob::Union{ODEProblem, DAEProblem},
alg::OverrideInit, isinplace::Union{Val{true}, Val{false}})
initializeprob = prob.f.initializeprob
prob.f.update_initializeprob!(initializeprob, prob)

if SciMLBase.has_update_initializeprob!(prob.f)
prob.f.update_initializeprob!(initializeprob, prob)
end

# If it doesn't have autodiff, assume it comes from symbolic system like ModelingToolkit
# Since then it's the case of not a DAE but has initializeprob
Expand Down

0 comments on commit b297f09

Please sign in to comment.