#include "petscksp.h" PetscErrorCode KSPMonitorSet(KSP ksp,PetscErrorCode (*monitor)(KSP,PetscInt,PetscReal,void*),void *mctx,PetscErrorCode (*monitordestroy)(void**))Logically Collective on KSP Many br
ksp | - iterative context obtained from KSPCreate() Many br | |
monitor | - pointer to function (if this is NULL, it turns off monitoring Many br | |
mctx | - [optional] context for private data for the Many brmonitor routine (use NULL if no context is desired) Many br | |
monitordestroy | - [optional] routine that frees monitor context Many br(may be NULL) Many br |
monitor (KSP ksp, int it, PetscReal rnorm, void *mctx)
ksp | - iterative context obtained from KSPCreate() Many br | |
it | - iteration number Many br | |
rnorm | - (estimated) 2-norm of (preconditioned) residual Many br | |
mctx | - optional monitoring context, as set by KSPMonitorSet() Many br |
-ksp_monitor | - sets KSPMonitorDefault() Many br | |
-ksp_monitor_true_residual | - sets KSPMonitorTrueResidualNorm() Many br | |
-ksp_monitor_max | - sets KSPMonitorTrueResidualMaxNorm() Many br | |
-ksp_monitor_lg_residualnorm | - sets line graph monitor, Many bruses KSPMonitorLGResidualNormCreate() Many br | |
-ksp_monitor_lg_true_residualnorm | - sets line graph monitor, Many bruses KSPMonitorLGResidualNormCreate() Many br | |
-ksp_monitor_singular_value | - sets KSPMonitorSingularValue() Many br | |
-ksp_monitor_cancel | - cancels all monitors that have Many brbeen hardwired into a code by Many brcalls to KSPMonitorSet(), but Many brdoes not cancel those set via Many brthe options database. Many br |
Several different monitoring routines may be set by calling Many brKSPMonitorSet() multiple times; all will be called in the Many brorder in which they were set. Many br
Fortran notes: Only a single monitor function can be set for each KSP object Many br
Many br
Level:beginner
Location:src/ksp/ksp/interface/itfunc.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages