MFNSetTolerances

Sets the tolerance and maximum iteration count used by the MFN convergence tests.

Synopsis

#include "slepcmfn.h" 
PetscErrorCode MFNSetTolerances(MFN mfn,PetscReal tol,PetscInt maxits)
Logically Collective on MFN

Input Parameters

mfn - the matrix function context
tol - the convergence tolerance
maxits - maximum number of iterations to use

Options Database Keys

-mfn_tol <tol> - Sets the convergence tolerance
-mfn_max_it <maxits> - Sets the maximum number of iterations allowed

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

MFNGetTolerances()

Location: src/mfn/interface/mfnopts.c
Index of all MFN routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/mfn/examples/tutorials/ex23.c.html