:orphan:
# PetscViewer
Abstract PETSc object for displaying (in ASCII, binary, graphically etc) PETSc objects and their data 
## Synopsis
```
typedef struct _p_PetscViewer *PetscViewer;
```



## See Also
 [](sec_viewers), `PetscViewerType`, `PETSCVIEWERASCII`, `PetscViewerCreate()`, `PetscViewerSetType()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscviewertypes.h.html#PetscViewer">include/petscviewertypes.h</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/tutorials/ex15.c.html">src/dm/tutorials/ex15.c</A><BR>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petsc/private/viewerimpl.h.html#_p_PetscViewer">_p_PetscViewer in include/petsc/private/viewerimpl.h</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscviewertypes.h)


[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)  
