Skip to content

Commit 5009dc3

Browse files
committed
use u retcode
1 parent 7edc807 commit 5009dc3

File tree

1 file changed

+1
-1
lines changed
  • lib/SimpleImplicitDiscreteSolve/src

1 file changed

+1
-1
lines changed

lib/SimpleImplicitDiscreteSolve/src/solve.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function perform_step!(integrator, cache::SimpleIDSolveCache, repeat_step = fals
77
prob = remake(prob, p = state)
88

99
u = solve(prob, SimpleNewtonRaphson())
10-
any(isnan, u) && (integrator.sol.retcode = SciMLBase.ReturnCode.Failure)
10+
integrator.sol.retcode = u.retcode
1111
integrator.u = u
1212
end
1313

0 commit comments

Comments
 (0)