Skip to content

Commit 88295d9

Browse files
committed
Fix indexing
1 parent aec3927 commit 88295d9

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/vector_of_array.jl

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -76,23 +76,6 @@ Base.@propagate_inbounds function Base.getindex(A::AbstractDiffEqArray{T, N},sym
7676
Base.getindex.(A.u, i)
7777
end
7878
end
79-
Base.@propagate_inbounds function Base.getindex(A::AbstractDiffEqArray{T, N},sym,args...) where {T, N}
80-
if issymbollike(sym) && A.syms !== nothing
81-
i = findfirst(isequal(Symbol(sym)),A.syms)
82-
else
83-
i = sym
84-
end
85-
86-
if i === nothing
87-
if issymbollike(i) && A.indepsym !== nothing && Symbol(i) == A.indepsym
88-
A.t[args...]
89-
else
90-
observed(A,sym,args...)
91-
end
92-
else
93-
Base.getindex.(A.u, args...)
94-
end
95-
end
9679
Base.@propagate_inbounds Base.getindex(A::AbstractDiffEqArray{T, N}, I::Int...) where {T, N} = A.u[I[end]][Base.front(I)...]
9780
Base.@propagate_inbounds Base.getindex(A::AbstractDiffEqArray{T, N}, i::Int) where {T, N} = A.u[i]
9881
function observed(A::AbstractDiffEqArray{T, N},sym,i::Int) where {T, N}

0 commit comments

Comments
 (0)