slepc-3.6.3 2016-03-29
Report Typos and Errors

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

Use PETSC_DEFAULT for either argument to assign a reasonably good value.

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