#include "slepcnep.h" PetscErrorCode NEPSetStoppingTestFunction(NEP nep,PetscErrorCode (*func)(NEP,PetscInt,PetscInt,PetscInt,PetscInt,NEPConvergedReason*,void*),void* ctx,PetscErrorCode (*destroy)(void*))Logically Collective on nep
nep | - nonlinear eigensolver context obtained from NEPCreate() | |
func | - pointer to the stopping test function | |
ctx | - context for private data for the stopping routine (may be null) | |
destroy | - a routine for destroying the context (may be null) |
func(NEP nep,PetscInt its,PetscInt max_it,PetscInt nconv,PetscInt nev,NEPConvergedReason *reason,void *ctx)
nep | - nonlinear eigensolver context obtained from NEPCreate() | |
its | - current number of iterations | |
max_it | - maximum number of iterations | |
nconv | - number of currently converged eigenpairs | |
nev | - number of requested eigenpairs | |
reason | - (output) result of the stopping test | |
ctx | - optional context, as set by NEPSetStoppingTestFunction() |