:orphan:
# TaoGetType
Gets the current `TaoType` being used in the `Tao` object 
## Synopsis
```
#include "petsctao.h" 
PetscErrorCode TaoGetType(Tao tao, TaoType *type)
```
Not Collective


## Input Parameter

- ***tao -*** the `Tao` solver context



## Output Parameter

- ***type -*** the `TaoType`





## See Also
 [](ch_tao), `Tao`, `TaoType`, `TaoSetType()`

## Level
intermediate

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

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/constrained/tutorials/ex1.c.html">src/tao/constrained/tutorials/ex1.c</A><BR>


---
[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)  
