Skip to content

Commit

Permalink
do not reject default returns
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Nov 14, 2024
1 parent da72c76 commit fd62717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OrdinaryDiffEqNonlinearSolve/src/newton.jl
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ end
reltol = reltol)
end

if !SciMLBase.successful_retcode(linres.retcode)
if !SciMLBase.successful_retcode(linres.retcode) && linres.retcode != SciMLBase.ReturnCode.Default
return convert(eltype(atmp,),Inf)
end

Expand Down

0 comments on commit fd62717

Please sign in to comment.