Skip to content

Commit 52ce641

Browse files
fix: handle edge case in floating point type promotion
1 parent 926fced commit 52ce641

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/problem_utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ function process_SciMLProblem(
11871187
u0map, pmap, defs, cmap, dvs, ps)
11881188

11891189
floatT = Bool
1190-
if u0Type <: AbstractArray && eltype(u0Type) <: Real
1190+
if u0Type <: AbstractArray && eltype(u0Type) <: Real && eltype(u0Type) != Union{}
11911191
floatT = float(eltype(u0Type))
11921192
else
11931193
floatT = float_type_from_varmap(op, floatT)

0 commit comments

Comments
 (0)