Skip to content

Commit 469d1c0

Browse files
committed
Restore old in-place interpolation of unspecified and integer idxs
1 parent 0718c98 commit 469d1c0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/solutions/ode_solutions.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,14 @@ function (sol::AbstractODESolution)(t::AbstractVector{<:Number}, ::Type{deriv},
369369
return DiffEqArray(u, t, p, sol; discretes)
370370
end
371371

372+
function (sol::AbstractODESolution)(v::AbstractArray, t::Number, ::Type{deriv},
373+
idxs::Union{Nothing, Integer, AbstractArray{<:Integer}}, continuity) where {deriv}
374+
return sol.interp(v, t, idxs, deriv, sol.prob.p, continuity)
375+
end
376+
function (sol::AbstractODESolution)(v::AbstractArray, t::AbstractVector{<:Number}, ::Type{deriv},
377+
idxs::Union{Nothing, Integer, AbstractArray{<:Integer}}, continuity) where {deriv}
378+
return sol.interp(v, t, idxs, deriv, sol.prob.p, continuity)
379+
end
372380
function (sol::AbstractODESolution)(v::AbstractArray, t::AbstractVector{<:Number}, ::Type{deriv}, idxs,
373381
continuity) where {deriv}
374382
symbolic_type(idxs) == NotSymbolic() && error("Incorrect specification of `idxs`")

0 commit comments

Comments
 (0)