# AOSetFromOptions
Sets `AO` options from the options database. 
## Synopsis
```
#include "petscao.h" 
PetscErrorCode AOSetFromOptions(AO ao)
```
Collective


## Input Parameter

- ***ao -*** the application ordering





## See Also
 [](sec_ao), `AO`, `AOCreate()`, `AOSetType()`, `AODestroy()`, `AOPetscToApplication()`, `AOApplicationToPetsc()`

## Level
beginner

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


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
