slepc-3.22.1 2024-10-28
Report Typos and Errors

# NEPSetConvergenceTestFunction

Sets a function to compute the error estimate used in the convergence test.

### Synopsis

    #include "slepcnep.h"
    PetscErrorCode NEPSetConvergenceTestFunction(NEP nep,NEPConvergenceTestFn *conv,void* ctx,PetscErrorCode (*destroy)(void*))

Logically Collective

### Input Parameters

| nep | - nonlinear eigensolver context obtained from NEPCreate()
| conv | - convergence test function, see NEPConvergenceTestFn for the calling sequence
| ctx | - context for private data for the convergence routine (may be NULL)
| destroy | - a routine for destroying the context (may be NULL)

### Note

If the error estimate returned by the convergence test function is less than the tolerance, then the eigenvalue is accepted as converged.

### See Also

NEPSetConvergenceTest(), NEPSetTolerances()

### Level

advanced

### Location

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