# TSAdaptSetMonitor
Monitor the choices made by the adaptive controller 
## Synopsis
```
#include "petscts.h" 
PetscErrorCode TSAdaptSetMonitor(TSAdapt adapt, PetscBool flg)
```
Collective


## Input Parameters

- ***adapt -*** adaptive controller context
- ***flg -*** `PETSC_TRUE` to active a monitor, `PETSC_FALSE` to disable



## Options Database Key

- ***-ts_adapt_monitor -*** to turn on monitoring





## See Also
 [](chapter_ts), `TSAdapt`, `TSGetAdapt()`, `TSAdaptChoose()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/adapt/interface/tsadapt.c.html#TSAdaptSetMonitor">src/ts/adapt/interface/tsadapt.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/adapt/interface/tsadapt.c)


[Index of all TS routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
