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