Skip to content

Commit

Permalink
Add stub methods
Browse files Browse the repository at this point in the history
  • Loading branch information
YingboMa committed Sep 6, 2018
1 parent 4caaa1a commit 99c1253
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dense.jl
Expand Up @@ -134,7 +134,7 @@ sde_interpolation(tvals,ts,timeseries,ks)
Get the value at tvals where the solution is known at the
times ts (sorted), with values timeseries and derivatives ks
"""
@inline function sde_interpolation(tvals,id,idxs,deriv,p,continuity)
@inline function sde_interpolation(tvals,id,idxs,deriv,p,continuity::Symbol=:left)
@unpack ts,timeseries = id
tdir = sign(ts[end]-ts[1])
idx = sortperm(tvals,rev=tdir<0)
Expand Down Expand Up @@ -179,7 +179,7 @@ sde_interpolation(tval::Number,ts,timeseries,ks)
Get the value at tval where the solution is known at the
times ts (sorted), with values timeseries and derivatives ks
"""
@inline function sde_interpolation(tval::Number,id,idxs,deriv,p,continuity)
@inline function sde_interpolation(tval::Number,id,idxs,deriv,p,continuity::Symbol=:left)
@unpack ts,timeseries = id
tdir = sign(ts[end]-ts[1])
tdir*tval > tdir*ts[end] && error("Solution interpolation cannot extrapolate past the final timepoint. Either solve on a longer timespan or use the local extrapolation from the integrator interface.")
Expand All @@ -206,7 +206,7 @@ times ts (sorted), with values timeseries and derivatives ks
val
end

@inline function sde_interpolation!(out,tval::Number,id,idxs,deriv,p,continuity)
@inline function sde_interpolation!(out,tval::Number,id,idxs,deriv,p,continuity::Symbol=:left)
@unpack ts,timeseries = id
tdir = sign(ts[end]-ts[1])
tdir*tval > tdir*ts[end] && error("Solution interpolation cannot extrapolate past the final timepoint. Either solve on a longer timespan or use the local extrapolation from the integrator interface.")
Expand All @@ -232,7 +232,7 @@ end
end
end

@inline function sde_interpolation!(vals,tvals,id,idxs,deriv,p,continuity)
@inline function sde_interpolation!(vals,tvals,id,idxs,deriv,p,continuity::Symbol=:left)
@unpack ts,timeseries = id
tdir = sign(ts[end]-ts[1])
idx = sortperm(tvals,rev=tdir<0)
Expand Down

0 comments on commit 99c1253

Please sign in to comment.