# AOGetType
Gets the `AO` type name (as a string) from the AO. 
## Synopsis
```
#include "petscao.h"  
PetscErrorCode AOGetType(AO ao, AOType *type)
```
Not Collective


## Input Parameter

- ***ao  -*** The vector



## Output Parameter

- ***type -*** The `AO` type name





## See Also
 `AO`, `AOType`, `AOSetType()`, `AOCreate()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/ao/interface/aoreg.c.html#AOGetType">src/vec/is/ao/interface/aoreg.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/ao/interface/aoreg.c)


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