:orphan: # 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 src/vec/is/ao/impls/mapping/aomapping.c --- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)