Skip to content

Commit e4ec932

Browse files
Merge pull request SciML#274 from SciML/retcode
Update return codes
2 parents 1194737 + cf998f6 commit e4ec932

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/SSA_stepper.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ function reset_aggregated_jumps!(integrator::SSAIntegrator, uprev = nothing)
304304
nothing
305305
end
306306

307-
function DiffEqBase.terminate!(integrator::SSAIntegrator, retcode = :Terminated)
307+
function DiffEqBase.terminate!(integrator::SSAIntegrator, retcode = ReturnCode.Terminated)
308308
integrator.keep_stepping = false
309309
integrator.sol = DiffEqBase.solution_new_retcode(integrator.sol, retcode)
310310
nothing

test/extinction_test.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ dprob = DiscreteProblem(u0, (0.0, 1000.0), rates)
7272
jprob = JumpProblem(dprob, Direct(), majump; save_positions = (false, false), rng = rng)
7373
sol = solve(jprob, SSAStepper(), callback = cb, save_end = false)
7474
@test sol[1, end] == 1
75-
@test sol.retcode == :Terminated
75+
@test sol.retcode == ReturnCode.Terminated

0 commit comments

Comments
 (0)