# PCViewFromOptions
View from the `PC` based on options in the database 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode PCViewFromOptions(PC A, PetscObject obj, const char name[])
```
Collective


## Input Parameters

- ***A -*** the PC context
- ***obj -*** Optional object that provides the options prefix
- ***name -*** command line option





## See Also
 `PC`, `PCView`, `PetscObjectViewFromOptions()`, `PCCreate()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/interface/precon.c.html#PCViewFromOptions">src/ksp/pc/interface/precon.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/interface/precon.c)


[Index of all PC routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
