Skip to content

Commit

Permalink
Do not allow for accepting steps with internal newton with linsolve fail
Browse files Browse the repository at this point in the history
I cannot share the MWE that gives this, but it's at least a clearly missing piece.
  • Loading branch information
ChrisRackauckas committed Nov 14, 2024
1 parent ce43d57 commit da72c76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/OrdinaryDiffEqNonlinearSolve/src/newton.jl
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ end
reltol = reltol)
end

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

cache.linsolve = linres.cache

if DiffEqBase.has_stats(integrator)
Expand Down

0 comments on commit da72c76

Please sign in to comment.