Skip to content

Commit

Permalink
use NLSolveSafeTerminationResult
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Apr 25, 2023
1 parent 0324c72 commit 444620b
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 444620b

Please sign in to comment.