:orphan:
# AOPetscToApplicationIS
Maps an index set in the PETSc ordering to the application-defined ordering.
## Synopsis
```
#include "petscao.h"
PetscErrorCode AOPetscToApplicationIS(AO ao, IS is)
```
Collective
## Input Parameters
- ***ao -*** the application ordering context
- ***is -*** the index set; this is replaced with its mapped values
## Output Parameter
- ***is -*** the mapped index set
## Notes
The index set cannot be of type stride or block
Any integers in is that are negative are left unchanged. This
allows one to convert, for example, neighbor lists that use negative
entries to indicate nonexistent neighbors due to boundary conditions etc.
## See Also
[](sec_ao), `AO`, `AOCreateBasic()`, `AOView()`, `AOApplicationToPetsc()`,
`AOApplicationToPetscIS()`, `AOPetscToApplication()`
## Level
intermediate
## Location
src/vec/is/ao/interface/ao.c
## Examples
src/dm/tutorials/ex22.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/ao/interface/ao.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)