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