#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() |
Several different monitoring routines may be set by calling PetscOptionsMonitorSet() multiple times; all will be called in the order in which they were set.