Skip to content

Commit e12313e

Browse files
committed
handle arr
1 parent 557b01f commit e12313e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,12 @@ function check_variables(dvs, iv)
156156
end
157157

158158
function check_var_types(sys_type::Type{T}, dvs) where T <: AbstractSystem
159-
if any(u -> !(symtype(u) <: Number), dvs)
159+
if any(u -> !(symtype(u) <: Number || eltype(symtype(u)) <: Number), dvs)
160160
error("The type of unknown variables must be a numeric type.")
161-
elseif any(u -> (symtype(u) !== symtype(dvs[1])), dvs)
161+
elseif any(u -> (symtype(u) !== symtype(dvs[1])), dvs)
162162
error("The type of all the unknown variables in a system must all be the same.")
163163
elseif sys_type == ODESystem || sys_type == SDESystem || sys_type == PDESystem
164-
any(u -> !(symtype(u) == Real), dvs) && error("The type of unknown variables for an SDESystem, PDESystem, or ODESystem should not be a concrete numeric type.")
164+
any(u -> !(symtype(u) == Real || eltype(symtype(u)) == Real), dvs) && error("The type of unknown variables for an SDESystem, PDESystem, or ODESystem should not be a concrete numeric type.")
165165
end
166166
nothing
167167
end

0 commit comments

Comments
 (0)