Skip to content

Commit

Permalink
fix: fix InitializationProblems that have vectors in u0map
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianM-C committed Nov 25, 2024
1 parent ac39aab commit 3988496
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/systems/diffeqs/abstractodesystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1356,6 +1356,7 @@ function InitializationProblem{iip, specialize}(sys::AbstractODESystem,
u0T = promote_type(u0T, typeof(fullmap[eq.lhs]))
end
if u0T != Union{}
u0T = eltype(u0T)
u0map = Dict(k => if symbolic_type(v) == NotSymbolic() && !is_array_of_symbolics(v)
v isa AbstractArray ? u0T.(v) : u0T(v)
else
Expand Down

0 comments on commit 3988496

Please sign in to comment.