Skip to content

Commit

Permalink
Update the last few retcode symbols to ReturnCode
Browse files Browse the repository at this point in the history
Looks like #510 missed these.
  • Loading branch information
danielwe committed Jun 24, 2023
1 parent 87822c2 commit b52ed97
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 b52ed97

Please sign in to comment.