Skip to content

Commit 0a46d87

Browse files
Continue on with the polyalg if a stalledsuccess
Only exit if less than tolerance
1 parent 33d6fa3 commit 0a46d87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/NonlinearSolveBase/src/solve.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ end
174174
$(prob_syms[i]), alg.algs[$(i)], args...;
175175
stats, alias_u0, verbose, kwargs...
176176
)
177-
if SciMLBase.successful_retcode($(cur_sol))
177+
if SciMLBase.successful_retcode($(cur_sol)) && cur_sol.retcode !== ReturnCode.StalledSuccess
178178
if alias_u0
179179
copyto!(u0, $(cur_sol).u)
180180
$(u_result_syms[i]) = u0

0 commit comments

Comments
 (0)