Skip to content

Commit d491cfd

Browse files
committed
Put only postamble in if block
1 parent fbd92c7 commit d491cfd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/integrator_interface.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,9 @@ Same as `check_error` but also set solution's return code
644644
function check_error!(integrator::DEIntegrator)
645645
code = check_error(integrator)
646646
integrator.sol = solution_new_retcode(integrator.sol, code)
647-
postamble!(integrator)
647+
if code != ReturnCode.Success
648+
postamble!(integrator)
649+
end
648650
return code
649651
end
650652

0 commit comments

Comments
 (0)