Skip to content

Commit

Permalink
use NLSolveSafeTerminationResult
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Jun 7, 2023
1 parent 0ef89a5 commit 5734827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/raphson.jl
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function SciMLBase.__init(prob::NonlinearProblem{uType, iip}, alg::NewtonRaphson
(!isnothing(tc.reltol) ? tc.reltol : eps(real(one(ueltype)))^(4 // 5))

mode = DiffEqBase.get_termination_mode(tc)
storage = mode DiffEqBase.SAFE_TERMINATION_MODES ? Dict() : nothing
storage = mode DiffEqBase.SAFE_TERMINATION_MODES ? NLSolveSafeTerminationResult() : nothing
termination_condition = tc(storage)

if alias_u0
Expand Down

0 comments on commit 5734827

Please sign in to comment.