QEPSetConvergenceTest

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

Synopsis

#include "slepcqep.h" 
extern PetscErrorCode QEPSetConvergenceTest(QEP qep,PetscErrorCode (*func)(QEP,PetscScalar,PetscScalar,PetscReal,PetscReal*,void*),void* ctx)
Logically Collective on QEP

Input Parameters

qep - eigensolver context obtained from QEPCreate()
func - a pointer to the convergence test function
ctx - a context pointer (the last parameter to the convergence test function)

Calling Sequence of func

  func(QEP qep,PetscScalar eigr,PetscScalar eigi,PetscReal res,PetscReal* errest,void *ctx)

qep - eigensolver context obtained from QEPCreate()
eigr - real part of the eigenvalue
eigi - imaginary part of the eigenvalue
res - residual norm associated to the eigenpair
errest - (output) computed error estimate
ctx - optional context, as set by QEPSetConvergenceTest()

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

QEPSetTolerances()

Location: src/qep/interface/qepopts.c
Index of all QEP routines
Table of Contents for all manual pages
Index of all manual pages