File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 65
65
warn (" Max Iters Reached. Aborting" )
66
66
end
67
67
postamble! (integrator)
68
- integrator. sol. retcode = :MaxIters
68
+ integrator. sol = solution_new_retcode (integrator . sol, :MaxIters )
69
69
return integrator. sol
70
70
end
71
71
if ! integrator. opts. force_dtmin && integrator. opts. adaptive && abs (integrator. dt) <= abs (integrator. opts. dtmin)
72
72
if integrator. opts. verbose
73
73
warn (" dt <= dtmin. Aborting. If you would like to force continuation with dt=dtmin, set force_dtmin=true" )
74
74
end
75
75
postamble! (integrator)
76
- integrator. sol. retcode = :DtLessThanMin
76
+ integrator. sol = solution_new_retcode (integrator . sol, :DtLessThanMin )
77
77
return integrator. sol
78
78
end
79
79
if integrator. opts. unstable_check (integrator. dt,integrator. t,integrator. u)
80
80
if integrator. opts. verbose
81
81
warn (" Instability detected. Aborting" )
82
82
end
83
83
postamble! (integrator)
84
- integrator. sol. retcode = :Unstable
84
+ integrator. sol = solution_new_retcode (integrator . sol, :Unstable )
85
85
return integrator. sol
86
86
end
87
87
end
Original file line number Diff line number Diff line change @@ -438,6 +438,6 @@ function solve!(integrator::SDEIntegrator)
438
438
if has_analytic (f)
439
439
calculate_solution_errors! (integrator. sol;timeseries_errors= integrator. opts. timeseries_errors,dense_errors= integrator. opts. dense_errors)
440
440
end
441
- integrator. sol. retcode = :Success
441
+ integrator. sol = solution_new_retcode (integrator . sol, :Success )
442
442
nothing
443
443
end
You can’t perform that action at this time.
0 commit comments