Skip to content

Commit 3fb56d2

Browse files
Merge pull request SciML#3577 from ChrisRackauckas-Claude/fix-reinit-initial-params-sciml36
Fix reinit! to propagate Initial(...) params with SciMLBase 3.6
2 parents 441d6fc + 3173ad7 commit 3fb56d2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/OrdinaryDiffEqCore/src/integrators/integrator_interface.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,9 +472,10 @@ function SciMLBase.reinit!(
472472
# want to avoid. So we pass an empty array of pairs to make it think this is
473473
# a symbolic `remake` and it can modify `newp` inplace. The array of pairs is a
474474
# const global to avoid allocating every time this function is called.
475+
root_indp = SciMLBase.get_root_indp(integrator.sol.prob)
475476
u0,
476477
newp = SciMLBase.late_binding_update_u0_p(
477-
integrator.sol.prob, u0,
478+
integrator.sol.prob, root_indp, u0,
478479
EMPTY_ARRAY_OF_PAIRS, t0, u0, integrator.p
479480
)
480481
if newp !== integrator.p

0 commit comments

Comments
 (0)