slepc-3.18.2 2023-01-26
Report Typos and Errors

# SVDMonitorRegister

Adds SVD monitor routine.

### Synopsis

    #include "slepcsvd.h"
    PetscErrorCode SVDMonitorRegister(const char name[],PetscViewerType vtype,PetscViewerFormat format,PetscErrorCode (*monitor)(SVD,PetscInt,PetscInt,PetscReal*,PetscReal*,PetscInt,PetscViewerAndFormat*),PetscErrorCode (*create)(PetscViewer,PetscViewerFormat,void*,PetscViewerAndFormat**),PetscErrorCode (*destroy)(PetscViewerAndFormat**))

Not Collective

### Input Parameters

| name | - name of a new monitor routine
| vtype | - a PetscViewerType for the output
| format | - a PetscViewerFormat for the output
| monitor | - monitor routine
| create | - creation routine, or NULL
| destroy | - destruction routine, or NULL

### Notes

SVDMonitorRegister() may be called multiple times to add several user-defined monitors.

### Sample usage

       SVDMonitorRegister("my_monitor",PETSCVIEWERASCII,PETSC_VIEWER_ASCII_INFO_DETAIL,MyMonitor,NULL,NULL);

Then, your monitor can be chosen with the procedural interface via

         SVDMonitorSetFromOptions(svd,"-svd_monitor_my_monitor","my_monitor",NULL)

or at runtime via the option

         -svd_monitor_my_monitor

### See Also

SVDMonitorRegisterAll()

### Level

advanced

### Location

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