Closed AayushSabharwal closed 1 hour ago
with inf-norm the residual norm is 1e-12. The default convergence is around 1e-14 IIRC
Docs:
abstol::Number
: The absolute tolerance. Defaults toreal(oneunit(T)) * (eps(real(one(T))))^(4 // 5)
.
reltol::Number
: The relative tolerance. Defaults toreal(oneunit(T)) * (eps(real(one(T))))^(4 // 5)
.
julia> T = Float64
Float64
julia> real(oneunit(T)) * (eps(real(one(T))))^(4/5)
3.000213634488528e-13
I see, thanks!
Describe the bug 🐞
The following
NonlinearProblem
(which is actually just a linear system) retcodes withMaxIters
despite having an almost-zero residual:Expected behavior
It returns successfully
Environment (please complete the following information):
using Pkg; Pkg.status()
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
versioninfo()