# TaoSetIterationNumber
Sets the current iteration number. 
## Synopsis
```
#include "petsctao.h" 
PetscErrorCode TaoSetIterationNumber(Tao tao, PetscInt iter)
```
Logically Collective


## Input Parameters

- ***tao -*** Tao context
- ***iter -*** iteration number





## See Also
 `TaoGetLinearSolveIterations()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/interface/taosolver.c.html#TaoSetIterationNumber">src/tao/interface/taosolver.c</A>


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


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