# AOViewFromOptions
View an `AO` based on values in the options database 
## Synopsis
```
#include "petscao.h" 
PetscErrorCode AOViewFromOptions(AO ao, PetscObject obj, const char name[])
```
Collective on ao


## Input Parameters

- ***ao -*** the application ordering context
- ***obj -*** Optional object
- ***name -*** command line option





## See Also
 [](sec_ao), `AO`, `AOView`, `PetscObjectViewFromOptions()`, `AOCreate()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/ao/interface/ao.c.html#AOViewFromOptions">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)  
