Skip to content

Commit

Permalink
fix new integrator interface adds
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Dec 29, 2017
1 parent dcebc6f commit c9ecdea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/integrators/integrator_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,10 @@ function DiffEqBase.auto_dt_reset!(integrator::SDEIntegrator)
integrator.opts.internalnorm,integrator.sol.prob,alg_order(integrator.alg))
end

@inline function DiffEqBase.get_du(integrator::ODEIntegrator)
@inline function DiffEqBase.get_du(integrator::SDEIntegrator)
(integrator.u - integrator.uprev) / integrator.dt
end

@inline function DiffEqBase.get_du!(out,integrator::ODEIntegrator)
@inline function DiffEqBase.get_du!(out,integrator::SDEIntegrator)
@. out = (integrator.u - integrator.uprev) / integrator.dt
end

0 comments on commit c9ecdea

Please sign in to comment.