# NEPSetTolerances

Sets various parameters used in convergence tests.

### Synopsis

    #include "slepcnep.h"
    PetscErrorCode NEPSetTolerances(NEP nep,PetscReal abstol,PetscReal rtol,PetscReal stol,PetscInt maxit,PetscInt maxf)

Logically Collective on NEP

### Input Parameters

| nep | - the nonlinear eigensolver context
| abstol | - 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
| maxf | - maximum number of function evaluations

### Options Database Keys

| -nep_atol <abstol> | - Sets abstol
| -nep_rtol <rtol> | - Sets rtol
| -nep_stol <stol> | - Sets stol
| -nep_max_it <maxit> | - Sets maxit
| -nep_max_funcs <maxf> | - Sets maxf

### Notes

Pass 0 for an argument that need not be changed.

Use PETSC_DECIDE for maxits to assign a reasonably good value, which is dependent on the solution method.

### See Also

NEPGetTolerances()

Location: src/nep/interface/nepopts.c
Index of all NEP routines
Table of Contents for all manual pages
Index of all manual pages

### Examples

src/nep/examples/tutorials/ex20.c.html
src/nep/examples/tutorials/ex22.c.html