Skip to content

Commit f289c5a

Browse files
authored
Replace vcat(eqs...) with reduce(vcat, eqs)
1 parent df32909 commit f289c5a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,9 @@ end
12171217
Find all the unknowns and parameters from the equations of a SDESystem or ODESystem. Return re-ordered equations, differential variables, all variables, and parameters.
12181218
"""
12191219
function process_equations(eqs, iv)
1220-
eltype(eqs) <: Vector && (eqs = vcat(eqs...))
1220+
if eltype(eqs) <: AbstractVector
1221+
eqs = reduce(vcat, eqs)
1222+
end
12211223
eqs = collect(eqs)
12221224

12231225
diffvars = OrderedSet()

0 commit comments

Comments
 (0)