:orphan: # PetscViewerViewFromOptions View from the viewer based on options in the options database ## Synopsis ``` #include "petscviewer.h" PetscErrorCode PetscViewerViewFromOptions(PetscViewer A, PetscObject obj, const char name[]) ``` Collective ## Input Parameters - ***A -*** the `PetscViewer` context - ***obj -*** Optional object that provides the prefix for the option names - ***name -*** command line option ## Note See `PetscObjectViewFromOptions()` for details on the viewers and formats support via this interface ## See Also [](sec_viewers), `PetscViewer`, `PetscViewerView`, `PetscObjectViewFromOptions()`, `PetscViewerCreate()` ## Level intermediate ## Location src/sys/classes/viewer/interface/view.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/viewer/interface/view.c) [Index of all Viewer routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)