Skip to content

Commit d479b48

Browse files
fix: handle non-vector non-symbolic array u0 for ODEProblem
1 parent 55bc266 commit d479b48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/diffeqs/abstractodesystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ function process_DEProblem(constructor, sys::AbstractODESystem, u0map, parammap;
812812
end
813813

814814
if eltype(u0map) <: Number
815-
u0map = unknowns(sys) .=> u0map
815+
u0map = unknowns(sys) .=> vec(u0map)
816816
end
817817
if u0map === nothing || isempty(u0map)
818818
u0map = Dict()

0 commit comments

Comments
 (0)