EPSSetValuesMonitor

Sets an ADDITIONAL function to be called at every iteration to monitor the value of approximate eigenvalues.

Synopsis

#include "slepceps.h" 
int EPSSetValuesMonitor(EPS eps, int (*monitor)(EPS,int,int,PetscScalar*,PetscScalar*,int,void*), void *mctx)
Collective on EPS

Input Parameters

eps - eigensolver context obtained from EPSCreate()
monitor - pointer to function (if this is PETSC_NULL, it turns off monitoring
mctx - [optional] context for private data for the monitor routine (use PETSC_NULL if no context is desired)

Calling Sequence of monitor

    monitor (EPS eps, int its, int nconv, PetscScalar* kr, PetscScalar* ki, int nest, void *mctx)

eps - eigensolver context obtained from EPSCreate()
its - iteration number
nconv - number of converged eigenpairs
kr - real part of each eigenvalue
ki - imaginary part of each eigenvalue
nest - number of error estimates
mctx - optional monitoring context, as set by EPSSetMonitor()

Options Database Keys

-eps_monitor_values - print eigenvalue approximations at each iteration
-eps_cancelmonitors - cancels all monitors that have been hardwired into a code by calls to EPSetValuesMonitor(), but does not cancel those set via the options database.

Notes

Several different monitoring routines may be set by calling EPSSetValuesMonitor() multiple times; all will be called in the order in which they were set.

See Also

EPSDefaultValuesMonitor(), EPSClearMonitor()

Level:intermediate
Location:
src/eps/interface/itfunc.c
Index of all EPS routines
Table of Contents for all manual pages
Index of all manual pages