Skip to content

Commit 555075f

Browse files
committed
typo
1 parent c91a425 commit 555075f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vector_of_array.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ function Base.lastindex(A::AbstractVectorOfArray, i=1)
167167
all(x->isequal(lastindex(x, i-1), len1), A) && return len1
168168
throw(ArgumentError("`end` is not defined for AbstractVectorOfArray types when the arrays have different sizes. Either enforce that the arrays are all similarly sized or directly define the index value.
169169
Note that a common reason for this error in the SciMLSolution context comes from adaptively sized models. Using arguments like `saveat` can enforce that an ensemble of solutions are all saved at the same time points and thus all have the same size. Similarly, if an ODE is solved with adaptivity in the size of the system (such as for adaptive grids) then this error can refer to the changing size of the ODE through the time series."))
170+
end
170171
@inline Base.length(VA::AbstractVectorOfArray) = length(VA.u)
171172
@inline Base.eachindex(VA::AbstractVectorOfArray) = Base.OneTo(length(VA.u))
172173
@inline Base.IteratorSize(VA::AbstractVectorOfArray) = Base.HasLength()
@@ -548,4 +549,3 @@ end
548549
end
549550
unpack_args_voa(i, args::Tuple{Any}) = (unpack_voa(args[1], i),)
550551
unpack_args_voa(::Any, args::Tuple{}) = ()
551-
end

0 commit comments

Comments
 (0)