Skip to content

Commit

Permalink
Merge pull request #535 from danielwe/retcode
Browse files Browse the repository at this point in the history
Update the last few retcode symbols to ReturnCode
  • Loading branch information
ChrisRackauckas authored Jun 24, 2023
2 parents 87822c2 + b52ed97 commit 4b22fcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/integrators/integrator_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ function addat_noise!(integrator,cache,idxs)
end


function terminate!(integrator::SDEIntegrator, retcode = :Terminated)
function terminate!(integrator::SDEIntegrator, retcode = ReturnCode.Terminated)
integrator.sol = DiffEqBase.solution_new_retcode(integrator.sol, retcode)
integrator.opts.tstops.valtree = typeof(integrator.opts.tstops.valtree)()
end
Expand Down
2 changes: 1 addition & 1 deletion src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ function DiffEqBase.solve!(integrator::SDEIntegrator)
if DiffEqBase.has_analytic(f)
DiffEqBase.calculate_solution_errors!(integrator.sol;timeseries_errors=integrator.opts.timeseries_errors,dense_errors=integrator.opts.dense_errors)
end
if integrator.sol.retcode != :Default
if integrator.sol.retcode != ReturnCode.Default
return integrator.sol
end
integrator.sol = DiffEqBase.solution_new_retcode(integrator.sol,ReturnCode.Success)
Expand Down

0 comments on commit 4b22fcb

Please sign in to comment.