From b52ed97dc98fd8c15b8630c8df4ba0be1c2a4d8f Mon Sep 17 00:00:00 2001 From: Daniel Wennberg Date: Fri, 23 Jun 2023 16:55:52 -0700 Subject: [PATCH] Update the last few retcode symbols to ReturnCode Looks like #510 missed these. --- src/integrators/integrator_interface.jl | 2 +- src/solve.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/integrators/integrator_interface.jl b/src/integrators/integrator_interface.jl index 9578f8679..6067827f8 100644 --- a/src/integrators/integrator_interface.jl +++ b/src/integrators/integrator_interface.jl @@ -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 diff --git a/src/solve.jl b/src/solve.jl index a020072b1..3a8f1611c 100644 --- a/src/solve.jl +++ b/src/solve.jl @@ -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)