Skip to content

Commit f138b5b

Browse files
fix: handle edge case in floating point type promotion
1 parent ee651bf commit f138b5b

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
@@ -1186,7 +1186,7 @@ function process_SciMLProblem(
11861186
u0map, pmap, defs, cmap, dvs, ps)
11871187

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

0 commit comments

Comments
 (0)