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.
1 parent 9a3edfe commit 932adebCopy full SHA for 932adeb
src/systems/diffeqs/abstractodesystem.jl
@@ -775,6 +775,16 @@ function get_u0_p(sys,
775
if parammap !== nothing
776
defs = mergedefaults(defs, parammap, ps)
777
end
778
+ if u0map isa Vector && eltype(u0map) <: Pair
779
+ u0map = Dict(u0map)
780
+ end
781
+ if u0map isa Dict
782
+ allobs = Set(getproperty.(observed(sys), :lhs))
783
+ if any(in(allobs), keys(u0map))
784
+ u0s_in_obs = filter(in(allobs), keys(u0map))
785
+ @warn "Observed variables cannot assigned initial values. Initial values for $u0s_in_obs will be ignored."
786
787
788
defs = mergedefaults(defs, u0map, dvs)
789
for (k, v) in defs
790
if Symbolics.isarraysymbolic(k)
0 commit comments