PetscErrorCode QPSMonitorSet(QPS qps,PetscErrorCode (*monitor)(QPS,PetscInt,PetscReal,void*),void *mctx,PetscErrorCode (*monitordestroy)(void**))Logically Collective on QPS
qps | - iterative context obtained from QPSCreate() | |
monitor | - pointer to function (if this is NULL, it turns off monitoring | |
mctx | - [optional] context for private data for the monitor routine (use NULL if no context is desired) | |
monitordestroy | - [optional] routine that frees monitor context (may be NULL) |
monitor (QPS qps, int it, PetscReal rnorm, void *mctx)
qps | - iterative context obtained from QPSCreate() | |
it | - iteration number | |
rnorm | - (estimated) 2-norm of (preconditioned) residual | |
mctx | - optional monitoring context, as set by QPSMonitorSet() |
-qps_monitor | - sets QPSMonitorDefault() | |
-qps_monitor_true_residual | - sets QPSMonitorTrueResidualNorm() | |
-qps_monitor_max | - sets QPSMonitorTrueResidualMaxNorm() | |
-qps_monitor_lg_residualnorm | - sets line graph monitor, uses QPSMonitorLGResidualNormCreate() | |
-qps_monitor_lg_true_residualnorm | - sets line graph monitor, uses KSPMonitorLGResidualNormCreate() | |
-qps_monitor_singular_value | - sets QPSMonitorSingularValue() | |
-qps_monitor_cancel | - cancels all monitors that have been hardwired into a code by calls to QPSMonitorSet(), but does not cancel those set via the options database. |
Several different monitoring routines may be set by calling QPSMonitorSet() multiple times; all will be called in the order in which they were set.
Level:beginner
Location:src/qps/interface/qps.c
Index of all QPS routines
Table of Contents for all manual pages
Index of all manual pages