SNESConverged_UM_LS

Monitors the convergence of the SNESSolve_UM_LS() routine (default).

Synopsis

int SNESConverged_UM_LS(SNES snes,double xnorm,double gnorm,double f,void *dummy)
Collective on SNES

Input Parameters

snes - the SNES context
xnorm - 2-norm of current iterate
gnorm - 2-norm of current gradient
f - objective function value
dummy - unused dummy context

Returns

where

1 if ( f < fmin ),- . 2 if ( gnorm < atol ),
-1 if ( nfunc > max_func ),- . -2 if ( gnorm < epsmch ),
-3 if line search attempt failed,- - 0 otherwise,
atol - absolute gradient norm tolerance, set with SNESSetTolerances()
epsmch - machine epsilon
fmin - lower bound on function value, set with SNESSetMinimizationFunctionTolerance()
max_func - maximum number of function evaluations, set with SNESSetTolerances()
nfunc - number of function evaluations

Location: src/snes/impls/umls/umls.c
SNES Index
Table of Contents