:orphan: # PetscViewerCheckReadable Check whether the viewer can be read from, generates an error if not ## Synopsis ``` #include "petscviewer.h" PetscErrorCode PetscViewerCheckReadable(PetscViewer viewer) ``` Collective ## Input Parameter - ***viewer -*** the `PetscViewer` context ## See Also [](sec_viewers), `PetscViewer`, `PetscViewerReadable()`, `PetscViewerCheckWritable()`, `PetscViewerCreate()`, `PetscViewerFileSetMode()`, `PetscViewerFileSetType()` ## 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)