:orphan: # DMMonitorCancel Clears all the monitor functions for a `DM` object. ## Synopsis ``` #include "petscdm.h" #include "petscdmlabel.h" #include "petscds.h" PetscErrorCode DMMonitorCancel(DM dm) ``` Logically Collective ## Input Parameter - ***dm -*** the DM ## Options Database Key - ***-dm_monitor_cancel -*** cancels all monitors that have been hardwired into a code by calls to `DMonitorSet()`, but does not cancel those set via the options database ## Note There is no way to clear one specific monitor from a `DM` object. ## See Also [](ch_dmbase), `DM`, `DMMonitorSet()`, `DMMonitorSetFromOptions()`, `DMMonitor()` ## Level intermediate ## Location src/dm/interface/dm.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/interface/dm.c) [Index of all DM routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)