SNESConverged_EQ_LS

Monitors the convergence of the solvers for systems of nonlinear equations (default).

Synopsis

int SNESConverged_EQ_LS(SNES snes,double xnorm,double pnorm,double fnorm,void *dummy)
Collective on SNES

Input Parameters

snes - the SNES context
xnorm - 2-norm of current iterate
pnorm - 2-norm of current step
fnorm - 2-norm of function
dummy - unused context

Returns

2 - if ( fnorm < atol ),
3 - if ( pnorm < xtol*xnorm ),
4 - if ( fnorm < rtol*fnorm0 ),
-2 - if ( nfct > maxf ),
0 - otherwise,

where

maxf - maximum number of function evaluations, set with SNESSetTolerances()
nfct - number of function evaluations,
atol - absolute function norm tolerance, set with SNESSetTolerances()
rtol - relative function norm tolerance, set with SNESSetTolerances()

Keywords

SNES, nonlinear, default, converged, convergence

See Also

SNESSetConvergenceTest(), SNESEisenstatWalkerConverged()

Location: src/snes/interface/snesut.c
SNES Index
Table of Contents