Skip to content

Commit a8e2495

Browse files
fix: do not require isconcretetype when discovering floatT
1 parent 9fe7586 commit a8e2495

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/systems/problem_utils.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -817,17 +817,16 @@ function process_SciMLProblem(
817817
u0map, pmap, defs, cmap, dvs, ps)
818818

819819
floatT = Bool
820-
if u0Type <: AbstractArray && isconcretetype(eltype(u0Type)) && eltype(u0Type) <: Real
820+
if u0Type <: AbstractArray && eltype(u0Type) <: Real
821821
floatT = eltype(u0Type)
822822
else
823823
for (k, v) in op
824824
symbolic_type(v) == NotSymbolic() || continue
825825
is_array_of_symbolics(v) && continue
826826

827827
if v isa AbstractArray
828-
isconcretetype(eltype(v)) || continue
829828
floatT = promote_type(floatT, eltype(v))
830-
elseif v isa Real && isconcretetype(v)
829+
elseif v isa Real
831830
floatT = promote_type(floatT, typeof(v))
832831
end
833832
end

0 commit comments

Comments
 (0)