:orphan:
# 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 -*** the `Tao` context



## Output Parameter

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





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


## See Also
 [](ch_tao), `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](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
