Skip to content

Commit 42d4d63

Browse files
Merge pull request #3234 from SebastianM-C/smc/arr
Fix type promotion in `InitializationProblem`s with vectors in the `u0map`
2 parents 14a7239 + 3988496 commit 42d4d63

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/systems/diffeqs/abstractodesystem.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,6 +1356,7 @@ function InitializationProblem{iip, specialize}(sys::AbstractODESystem,
13561356
u0T = promote_type(u0T, typeof(fullmap[eq.lhs]))
13571357
end
13581358
if u0T != Union{}
1359+
u0T = eltype(u0T)
13591360
u0map = Dict(k => if symbolic_type(v) == NotSymbolic() && !is_array_of_symbolics(v)
13601361
v isa AbstractArray ? u0T.(v) : u0T(v)
13611362
else

0 commit comments

Comments
 (0)