petsc-3.7.1 2016-05-15
Report Typos and Errors

SNESSetTolerances

Sets various parameters used in convergence tests.

Synopsis

#include "petscsnes.h"  
PetscErrorCode  SNESSetTolerances(SNES snes,PetscReal abstol,PetscReal rtol,PetscReal stol,PetscInt maxit,PetscInt maxf)
Logically Collective on SNES Many br

Input Parameters

snes - the SNES context Many br
abstol - absolute convergence tolerance Many br
rtol - relative convergence tolerance Many br
stol - convergence tolerance in terms of the norm of the change in the solution between steps, || delta x || < stol*|| x || Many br
maxit - maximum number of iterations Many br
maxf - maximum number of function evaluations Many br

Options Database Keys

-snes_atol <abstol> - Sets abstol Many br
-snes_rtol <rtol> - Sets rtol Many br
-snes_stol <stol> - Sets stol Many br
-snes_max_it <maxit> - Sets maxit Many br
-snes_max_funcs <maxf> - Sets maxf Many br

Notes

The default maximum number of iterations is 50. Many brThe default maximum number of function evaluations is 1000. Many br

Many br

Keywords

SNES, nonlinear, set, convergence, tolerances

See Also

SNESSetTrustRegionTolerance()

Level:intermediate
Location:
src/snes/interface/snes.c
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages