#include "petscdm.h" #include "petscdmlabel.h" #include "petscds.h" PetscErrorCode DMMonitorSet(DM dm, PetscErrorCode (*f)(DM, void *), void *mctx, PetscErrorCode (*monitordestroy)(void**))Logically Collective on DM
DM | - the DM | |
f | - the monitor function | |
mctx | - [optional] user-defined 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) |
-dm_monitor_cancel | - cancels all monitors that have been hardwired into a code by calls to DMMonitorSet(), but does not cancel those set via the options database. |