SVDMonitorSet

Sets an ADDITIONAL function to be called at every iteration to monitor the error estimates for each requested singular triplet.

Synopsis

#include "slepcsvd.h" 
PetscErrorCode SVDMonitorSet(SVD svd,PetscErrorCode (*monitor)(SVD,PetscInt,PetscInt,PetscReal*,PetscReal*,PetscInt,void*),
                             void *mctx,PetscErrorCode (*monitordestroy)(void*))
Collective on SVD

Input Parameters

svd - singular value solver context obtained from SVDCreate()
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 (SVD svd, PetscInt its, PetscInt nconv, PetscReal *sigma, PetscReal* errest, PetscInt nest, void *mctx)

svd - singular value solver context obtained from SVDCreate()
its - iteration number
nconv - number of converged singular triplets
sigma - singular values
errest - relative error estimates for each singular triplet
nest - number of error estimates
mctx - optional monitoring context, as set by SVDMonitorSet()

Options Database Keys

-svd_monitor - print error estimates at each iteration
-svd_monitor_draw - sets line graph monitor
-svd_monitor_cancel - cancels all monitors that have been hardwired into a code by calls to SVDMonitorSet(), but does not cancel those set via the options database.

Notes

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

See Also

SVDMonitorDefault(), SVDMonitorCancel()

Location: src/svd/interface/svdmon.c
Index of all SVD routines
Table of Contents for all manual pages
Index of all manual pages