# TaoAddLineSearchCounts
Adds the number of function evaluations spent in the line search to the running total. 
## Synopsis
```
#include "petsctao.h" 
PetscErrorCode TaoAddLineSearchCounts(Tao tao)
```

## Input Parameters

- ***tao -*** the Tao solver
- ***ls -*** the line search used in the optimization solver





## See Also
 `TaoGetLineSearch()`, `TaoLineSearchApply()`

## Level
developer

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