# TaoGetLinearSolveIterations
Gets the total number of linear iterations used by the Tao solver 
## Synopsis
```
#include "petsctao.h" 
PetscErrorCode TaoGetLinearSolveIterations(Tao tao, PetscInt *lits)
```
Not Collective


## Input Parameter

- ***tao -*** Tao context



## Output Parameter

- ***lits -*** number of linear iterations



## Notes
This counter is reset to zero for each successive call to TaoSolve()




## See Also
 `Tao`, `TaoGetKSP()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/interface/taosolver.c.html#TaoGetLinearSolveIterations">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)  
