Skip to content

Commit d2c9796

Browse files
add some integrator interface compliance
1 parent 74f4958 commit d2c9796

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/integrators/integrator_interface.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ end
2626

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

29-
user_cache(integrator::SDEIntegrator) = (integrator.cache.u,integrator.cache.uprev,integrator.cache.tmp)
29+
user_cache(integrator::SDEIntegrator) = (integrator.cache.u,integrator.cache.uprev,integrator.cache.tmp)
3030
u_cache(integrator::SDEIntegrator) = u_cache(integrator.cache)
3131
du_cache(integrator::SDEIntegrator)= du_cache(integrator.cache)
3232
full_cache(integrator::SDEIntegrator) = chain(u_cache(integrator),du_cache(integrator.cache))
33+
@inline add_tstop!(integrator::SDEIntegrator,t) = push!(integrator.opts.tstops,t)

0 commit comments

Comments
 (0)