# TSAdjointMonitorDrawSensi
Monitors progress of the adjoint `TS` solvers by calling `VecView()` for the sensitivities to initial states at each timestep 
## Synopsis
```
#include "petscts.h"  
PetscErrorCode TSAdjointMonitorDrawSensi(TS ts, PetscInt step, PetscReal ptime, Vec u, PetscInt numcost, Vec *lambda, Vec *mu, void *dummy)
```
Collective on ts


## Input Parameters

- ***ts -*** the `TS` context
- ***step -*** current time-step
- ***ptime -*** current time
- ***u -*** current state
- ***numcost -*** number of cost functions
- ***lambda -*** sensitivities to initial conditions
- ***mu -*** sensitivities to parameters
- ***dummy -*** either a viewer or NULL





## See Also
 [](chapter_ts), `TSAdjointSolve()`, `TSAdjointMonitorSet()`, `TSAdjointMonitorDefault()`, `VecView()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/interface/sensitivity/tssen.c.html#TSAdjointMonitorDrawSensi">src/ts/interface/sensitivity/tssen.c</A>


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


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