Skip to content

Commit eea66d0

Browse files
committed
up
1 parent 45c2588 commit eea66d0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/utils.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,11 @@ 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 || eltype(symtype(u)) <: Number), dvs)
160-
error("The type of unknown variables must be a numeric type.")
161-
elseif any(u -> (eltype(symtype(u)) !== eltype(symtype(dvs[1]))), dvs)
162-
error("The element type of all the unknown variables in a system must all be the same.")
163-
elseif sys_type == ODESystem || sys_type == SDESystem || sys_type == PDESystem
159+
# if any(u -> !(symtype(u) <: Number || eltype(symtype(u)) <: Number), dvs)
160+
# error("The type of unknown variables must be a numeric type.")
161+
# elseif any(u -> (eltype(symtype(u)) !== eltype(symtype(dvs[1]))), dvs)
162+
# error("The element type of all the unknown variables in a system must all be the same.")
163+
if sys_type == ODESystem || sys_type == SDESystem || sys_type == PDESystem
164164
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

0 commit comments

Comments
 (0)