#include "slepcnep.h" PetscErrorCode NEPSetStoppingTestFunction(NEP nep,PetscErrorCode (*stop)(NEP nep,PetscInt its,PetscInt max_its,PetscInt nconv,PetscInt nev,NEPConvergedReason *reason,void *ctx),void* ctx,PetscErrorCode (*destroy)(void*))Logically Collective
nep | - nonlinear eigensolver context obtained from NEPCreate() | |
stop | - 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) |
PetscErrorCode stop(NEP nep,PetscInt its,PetscInt max_its,PetscInt nconv,PetscInt nev,NEPConvergedReason *reason,void *ctx)
nep | - nonlinear eigensolver context obtained from NEPCreate() | |
its | - current number of iterations | |
max_its | - 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() |