Skip to content

Commit

Permalink
update retcodes to ReturnCode
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Nov 10, 2022
1 parent 81e26f0 commit 6b687d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ function DiffEqBase.solve!(integrator::SDDEIntegrator)
@inbounds while !isempty(integrator.opts.tstops)
while integrator.tdir * integrator.t < first(integrator.opts.tstops)
loopheader!(integrator)
if DiffEqBase.check_error!(integrator) != :Success
if DiffEqBase.check_error!(integrator) != ReturnCode.Success
return integrator.sol
end
StochasticDiffEq.perform_step!(integrator, integrator.cache)
Expand All @@ -534,7 +534,7 @@ function DiffEqBase.solve!(integrator::SDDEIntegrator)
if integrator.sol.retcode != :Default
return integrator.sol
end
integrator.sol = DiffEqBase.solution_new_retcode(integrator.sol, :Success)
integrator.sol = DiffEqBase.solution_new_retcode(integrator.sol, ReturnCode.Success)
end

# function StochasticDiffEq.tstop_saveat_disc_handling(tstops, saveat, d_discontinuities, tspan)
Expand Down

0 comments on commit 6b687d7

Please sign in to comment.