SNESNGSSetTolerances#
Sets various parameters used in convergence tests for nonlinear Gauss-Seidel SNESNCG
Synopsis#
#include "petscsnes.h"
PetscErrorCode SNESNGSSetTolerances(SNES snes, PetscReal abstol, PetscReal rtol, PetscReal stol, PetscInt maxit)
Logically Collective
Input Parameters#
snes - the
SNES
contextabstol - absolute convergence tolerance
rtol - relative convergence tolerance
stol - convergence tolerance in terms of the norm of the change in the solution between steps, || delta x || < stol*|| x ||
maxit - maximum number of iterations
Options Database Keys#
-snes_ngs_atol
- Sets abstol-snes_ngs_rtol
- Sets rtol-snes_ngs_stol
- Sets stol-snes_max_it
- Sets maxit
Notes#
Use PETSC_CURRENT
to retain the value for any parameter
All parameters must be non-negative
Developer Note#
Why can’t the values set with SNESSetTolerances()
be used?
See Also#
Level#
intermediate
Location#
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages