slepc-3.20.2 2024-03-15
Report Typos and Errors

NEPMonitorRegister

Adds NEP monitor routine.

Synopsis

#include "slepcnep.h" 
PetscErrorCode NEPMonitorRegister(const char name[],PetscViewerType vtype,PetscViewerFormat format,PetscErrorCode (*monitor)(NEP,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

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

Example Usage

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

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

     NEPMonitorSetFromOptions(nep,"-nep_monitor_my_monitor","my_monitor",NULL)
or at runtime via the option
     -nep_monitor_my_monitor

See Also

NEPMonitorRegisterAll()

Level

advanced

Location

src/nep/interface/nepbasic.c

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