We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
late_binding_update_u0_p
1 parent ad0347b commit 926fcedCopy full SHA for 926fced
src/systems/nonlinear/initializesystem.jl
@@ -640,8 +640,8 @@ function SciMLBase.late_binding_update_u0_p(
640
return newu0, newp
641
end
642
643
- newp = p === missing ? copy(newp) : newp
644
-
+ syms = []
+ vals = []
645
allsyms = all_symbols(sys)
646
for (k, v) in u0
647
v === nothing && continue
@@ -653,9 +653,11 @@ function SciMLBase.late_binding_update_u0_p(
653
k = k2
654
655
is_parameter(sys, Initial(k)) || continue
656
- setp(sys, Initial(k))(newp, v)
+ push!(syms, Initial(k))
657
+ push!(vals, v)
658
659
660
+ newp = setp_oop(sys, syms)(newp, vals)
661
662
663
0 commit comments