@@ -370,15 +370,17 @@ function (sol::AbstractODESolution)(t::AbstractVector{<:Number}, ::Type{deriv},
370
370
end
371
371
372
372
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}
374
374
return sol. interp (v, t, idxs, deriv, sol. prob. p, continuity)
375
375
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}
378
379
return sol. interp (v, t, idxs, deriv, sol. prob. p, continuity)
379
380
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}
382
384
symbolic_type (idxs) == NotSymbolic () && error (" Incorrect specification of `idxs`" )
383
385
error_if_observed_derivative (sol, idxs, deriv)
384
386
p = hasproperty (sol. prob, :p ) ? sol. prob. p : nothing
@@ -393,8 +395,9 @@ function (sol::AbstractODESolution)(v::AbstractArray, t::AbstractVector{<:Number
393
395
end
394
396
error (" In-place interpolation with discretes is not implemented." )
395
397
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}
398
401
if symbolic_type (idxs) == NotSymbolic () && isempty (idxs)
399
402
return map (_ -> eltype (eltype (sol. u))[], t)
400
403
end
0 commit comments