#include "petscsys.h" PetscErrorCode PetscOptionsMonitorSet(PetscErrorCode (*monitor)(const char name[], const char value[], void*),void *mctx,PetscErrorCode (*monitordestroy)(void**))Not Collective
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 (const char name[], const char value[], void *mctx)
name | - option name string | |
value | - option value string | |
mctx | - optional monitoring context, as set by PetscOptionsMonitorSet() |
-options_monitor | - sets PetscOptionsMonitorDefault() | |
-options_monitor_cancel | - cancels all monitors that have been hardwired into a code by calls to PetscOptionsMonitorSet(), but does not cancel those set via the options database. |
Several different monitoring routines may be set by calling PetscOptionsMonitorSet() multiple times; all will be called in the order in which they were set.