From 5734827604ce26c3e5ff123b1f6fb1d4acfbc673 Mon Sep 17 00:00:00 2001 From: oscarddssmith Date: Tue, 25 Apr 2023 09:35:07 -0400 Subject: [PATCH] use NLSolveSafeTerminationResult --- src/raphson.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raphson.jl b/src/raphson.jl index a0e7d9c96..40226a2c6 100644 --- a/src/raphson.jl +++ b/src/raphson.jl @@ -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