# AOMappingHasPetscIndex
checks if an `AO` has a requested petsc index. 
## Synopsis
```
#include "petscao.h" 
PetscErrorCode AOMappingHasPetscIndex(AO ao, PetscInt idex, PetscBool *hasIndex)
```
Not Collective


## Input Parameters

- ***ao       -*** The `AO`
- ***index    -*** The petsc index



## Output Parameter

- ***hasIndex -*** Flag is `PETSC_TRUE` if the index exists





## Developer Note
The name of the function is wrong, it should be `AOHasPetscIndex`


## See Also
 [](sec_ao), `AOMappingHasApplicationIndex()`, `AOCreateMapping()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/ao/impls/mapping/aomapping.c.html#AOMappingHasPetscIndex">src/vec/is/ao/impls/mapping/aomapping.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/ao/impls/mapping/aomapping.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)  
