Skip to content

Commit

Permalink
add some integrator interface compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Feb 9, 2017
1 parent 74f4958 commit d2c9796
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/integrators/integrator_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ end

(integrator::SDEIntegrator)(val::AbstractArray,t::Union{Number,AbstractArray},deriv::Type=Val{0};idxs=eachindex(integrator.uprev)) = current_interpolant!(val,t,integrator,idxs,deriv)

user_cache(integrator::SDEIntegrator) = (integrator.cache.u,integrator.cache.uprev,integrator.cache.tmp)
user_cache(integrator::SDEIntegrator) = (integrator.cache.u,integrator.cache.uprev,integrator.cache.tmp)
u_cache(integrator::SDEIntegrator) = u_cache(integrator.cache)
du_cache(integrator::SDEIntegrator)= du_cache(integrator.cache)
full_cache(integrator::SDEIntegrator) = chain(u_cache(integrator),du_cache(integrator.cache))
@inline add_tstop!(integrator::SDEIntegrator,t) = push!(integrator.opts.tstops,t)

0 comments on commit d2c9796

Please sign in to comment.