int SNESSetConvergenceTest(SNES snes,int (*func)(SNES,double,double,double,void*),void *cctx)Collective on SNES
snes | - the SNES context |
func | - routine to test for convergence |
cctx | - [optional] context for private data for the convergence routine (may be PETSC_NULL) |
int func (SNES snes,double xnorm,double gnorm,double f,void *cctx)
snes | - the SNES context |
cctx | - [optional] convergence context |
xnorm | - 2-norm of current iterate |
gnorm | - 2-norm of current step (SNES_NONLINEAR_EQUATIONS methods) |
f | - 2-norm of function (SNES_NONLINEAR_EQUATIONS methods) |
gnorm | - 2-norm of current gradient (SNES_UNCONSTRAINED_MINIMIZATION methods) |
f | - function value (SNES_UNCONSTRAINED_MINIMIZATION methods) |
Location: src/snes/interface/snes.c
SNES Index
Table of Contents