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 23bf46a commit 8fd7ac9Copy full SHA for 8fd7ac9
src/systems/nonlinear/initializesystem.jl
@@ -738,6 +738,7 @@ function SciMLBase.late_binding_update_u0_p(
738
end
739
newp = setp_oop(sys, syms)(newp, vals)
740
else
741
+ allsyms = nothing
742
# if `p` is not provided or is symbolic
743
p === missing || eltype(p) <: Pair || return newu0, newp
744
(newu0 === nothing || isempty(newu0)) && return newu0, newp
@@ -755,6 +756,9 @@ function SciMLBase.late_binding_update_u0_p(
755
756
if eltype(p) <: Pair
757
syms = []
758
vals = []
759
+ if allsyms === nothing
760
+ allsyms = all_symbols(sys)
761
+ end
762
for (k, v) in p
763
v === nothing && continue
764
(symbolic_type(v) == NotSymbolic() && !is_array_of_symbolics(v)) || continue
0 commit comments