Skip to content

Commit 2737f51

Browse files
committed
Format
1 parent 9d1eab7 commit 2737f51

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/solutions/ode_solutions.jl

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -370,15 +370,17 @@ function (sol::AbstractODESolution)(t::AbstractVector{<:Number}, ::Type{deriv},
370370
end
371371

372372
function (sol::AbstractODESolution)(v::AbstractArray, t::Number, ::Type{deriv},
373-
idxs::Union{Nothing, Integer, AbstractArray{<:Integer}}, continuity) where {deriv}
373+
idxs::Union{Nothing, Integer, AbstractArray{<:Integer}}, continuity) where {deriv}
374374
return sol.interp(v, t, idxs, deriv, sol.prob.p, continuity)
375375
end
376-
function (sol::AbstractODESolution)(v::AbstractArray, t::AbstractVector{<:Number}, ::Type{deriv},
377-
idxs::Union{Nothing, Integer, AbstractArray{<:Integer}}, continuity) where {deriv}
376+
function (sol::AbstractODESolution)(
377+
v::AbstractArray, t::AbstractVector{<:Number}, ::Type{deriv},
378+
idxs::Union{Nothing, Integer, AbstractArray{<:Integer}}, continuity) where {deriv}
378379
return sol.interp(v, t, idxs, deriv, sol.prob.p, continuity)
379380
end
380-
function (sol::AbstractODESolution)(v::AbstractArray, t::AbstractVector{<:Number}, ::Type{deriv}, idxs,
381-
continuity) where {deriv}
381+
function (sol::AbstractODESolution)(
382+
v::AbstractArray, t::AbstractVector{<:Number}, ::Type{deriv}, idxs,
383+
continuity) where {deriv}
382384
symbolic_type(idxs) == NotSymbolic() && error("Incorrect specification of `idxs`")
383385
error_if_observed_derivative(sol, idxs, deriv)
384386
p = hasproperty(sol.prob, :p) ? sol.prob.p : nothing
@@ -393,8 +395,9 @@ function (sol::AbstractODESolution)(v::AbstractArray, t::AbstractVector{<:Number
393395
end
394396
error("In-place interpolation with discretes is not implemented.")
395397
end
396-
function (sol::AbstractODESolution)(v::AbstractArray, t::AbstractVector{<:Number}, ::Type{deriv},
397-
idxs::AbstractVector, continuity) where {deriv}
398+
function (sol::AbstractODESolution)(
399+
v::AbstractArray, t::AbstractVector{<:Number}, ::Type{deriv},
400+
idxs::AbstractVector, continuity) where {deriv}
398401
if symbolic_type(idxs) == NotSymbolic() && isempty(idxs)
399402
return map(_ -> eltype(eltype(sol.u))[], t)
400403
end

0 commit comments

Comments
 (0)