From fd62717b1231761a9bd7ad0ca47d86d44bd6bbaa Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Thu, 14 Nov 2024 10:22:50 -0100 Subject: [PATCH] do not reject default returns --- lib/OrdinaryDiffEqNonlinearSolve/src/newton.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OrdinaryDiffEqNonlinearSolve/src/newton.jl b/lib/OrdinaryDiffEqNonlinearSolve/src/newton.jl index 45ffaea974..994ecea696 100644 --- a/lib/OrdinaryDiffEqNonlinearSolve/src/newton.jl +++ b/lib/OrdinaryDiffEqNonlinearSolve/src/newton.jl @@ -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