Skip to content

Commit ea89483

Browse files
committed
Format
1 parent ea470b0 commit ea89483

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/solutions/ode_solutions.jl

+9-6
Original file line numberDiff line numberDiff line change
@@ -369,12 +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::AbstractVector{<:Number}, ::Type{deriv},
373-
idxs::Union{Nothing, Integer, AbstractArray{<:Integer}}, continuity) where {deriv}
372+
function (sol::AbstractODESolution)(
373+
v::AbstractArray, t::AbstractVector{<:Number}, ::Type{deriv},
374+
idxs::Union{Nothing, Integer, AbstractArray{<:Integer}}, continuity) where {deriv}
374375
return sol.interp(v, t, idxs, deriv, sol.prob.p, continuity)
375376
end
376-
function (sol::AbstractODESolution)(v::AbstractArray, t::AbstractVector{<:Number}, ::Type{deriv}, idxs,
377-
continuity) where {deriv}
377+
function (sol::AbstractODESolution)(
378+
v::AbstractArray, t::AbstractVector{<:Number}, ::Type{deriv}, idxs,
379+
continuity) where {deriv}
378380
symbolic_type(idxs) == NotSymbolic() && error("Incorrect specification of `idxs`")
379381
error_if_observed_derivative(sol, idxs, deriv)
380382
p = hasproperty(sol.prob, :p) ? sol.prob.p : nothing
@@ -389,8 +391,9 @@ function (sol::AbstractODESolution)(v::AbstractArray, t::AbstractVector{<:Number
389391
end
390392
error("In-place interpolation with discretes is not implemented.")
391393
end
392-
function (sol::AbstractODESolution)(v::AbstractArray, t::AbstractVector{<:Number}, ::Type{deriv},
393-
idxs::AbstractVector, continuity) where {deriv}
394+
function (sol::AbstractODESolution)(
395+
v::AbstractArray, t::AbstractVector{<:Number}, ::Type{deriv},
396+
idxs::AbstractVector, continuity) where {deriv}
394397
if symbolic_type(idxs) == NotSymbolic() && isempty(idxs)
395398
return map(_ -> eltype(eltype(sol.u))[], t)
396399
end

0 commit comments

Comments
 (0)