:orphan:
# TSAdjointSetSteps
Sets the number of steps the adjoint solver should take backward in time 
## Synopsis
```
#include "petscts.h"  
PetscErrorCode TSAdjointSetSteps(TS ts, PetscInt steps)
```
Logically Collective


## Input Parameters

- ***ts -*** the `TS` context obtained from `TSCreate()`
- ***steps -*** number of steps to use





## Notes
Normally one does not call this and `TSAdjointSolve()` integrates back to the original timestep. One can call this
so as to integrate back to less than the original timestep


## See Also
 [](ch_ts), `TSAdjointSolve()`, `TS`, `TSSetExactFinalTime()`

## Level
intermediate

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

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex20td.c.html">src/ts/tutorials/ex20td.c</A><BR>


---
[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](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
