slepc-3.21.1 2024-04-26
Report Typos and Errors

EPSMonitorRegister

Adds EPS monitor routine.

Synopsis

#include "slepceps.h" 
PetscErrorCode EPSMonitorRegister(const char name[],PetscViewerType vtype,PetscViewerFormat format,PetscErrorCode (*monitor)(EPS,PetscInt,PetscInt,PetscScalar*,PetscScalar*,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

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

Example Usage

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

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

     EPSMonitorSetFromOptions(eps,"-eps_monitor_my_monitor","my_monitor",NULL)
or at runtime via the option
     -eps_monitor_my_monitor

See Also

EPSMonitorRegisterAll()

Level

advanced

Location

src/eps/interface/epsbasic.c

Index of all EPS routines
Table of Contents for all manual pages
Index of all manual pages