# KSPViewFromOptions
View a `KSP` object based on values in the options database 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode KSPViewFromOptions(KSP A, PetscObject obj, const char name[])
```
Collective


## Input Parameters

- ***A -*** Krylov solver context
- ***obj -*** Optional object
- ***name -*** command line option





## See Also
 `KSP`, `KSPView`, `PetscObjectViewFromOptions()`, `KSPCreate()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/interface/itcreate.c.html#KSPViewFromOptions">src/ksp/ksp/interface/itcreate.c</A>


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


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