From cf998f67e308b2e4ebfd4d4b8e66d2d3afa89215 Mon Sep 17 00:00:00 2001 From: Chris Rackauckas Date: Fri, 25 Nov 2022 02:06:57 +0100 Subject: [PATCH] Update return codes --- src/SSA_stepper.jl | 2 +- test/extinction_test.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SSA_stepper.jl b/src/SSA_stepper.jl index e5c9d080..cf1feac9 100644 --- a/src/SSA_stepper.jl +++ b/src/SSA_stepper.jl @@ -304,7 +304,7 @@ function reset_aggregated_jumps!(integrator::SSAIntegrator, uprev = nothing) nothing end -function DiffEqBase.terminate!(integrator::SSAIntegrator, retcode = :Terminated) +function DiffEqBase.terminate!(integrator::SSAIntegrator, retcode = ReturnCode.Terminated) integrator.keep_stepping = false integrator.sol = DiffEqBase.solution_new_retcode(integrator.sol, retcode) nothing diff --git a/test/extinction_test.jl b/test/extinction_test.jl index 3221a146..2f756c25 100644 --- a/test/extinction_test.jl +++ b/test/extinction_test.jl @@ -72,4 +72,4 @@ dprob = DiscreteProblem(u0, (0.0, 1000.0), rates) jprob = JumpProblem(dprob, Direct(), majump; save_positions = (false, false), rng = rng) sol = solve(jprob, SSAStepper(), callback = cb, save_end = false) @test sol[1, end] == 1 -@test sol.retcode == :Terminated +@test sol.retcode == ReturnCode.Terminated