DMMonitorCancel — PETSc 3.23.0 documentation

Skip to main content
`Ctrl`+`K`

# 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

DM Basics, `DM`, `DMMonitorSet()`, `DMMonitorSetFromOptions()`, `DMMonitor()`

## Level

intermediate

## Location

src/dm/interface/dm.c

Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages