:orphan:
# PetscViewerGLVisType
indicates what type of `PETSCVIEWERGLVIS` viewer to use 
## Synopsis
```
typedef enum {
  PETSC_VIEWER_GLVIS_DUMP,
  PETSC_VIEWER_GLVIS_SOCKET
} PetscViewerGLVisType;
```

## Values

- ***`PETSC_VIEWER_GLVIS_DUMP` -*** save the data to a file
- ***`PETSC_VIEWER_GLVIS_SOCKET` -*** communicate the data to another program via a socket





## See Also
 [](sec_viewers), `PETSCVIEWERGLVIS`, `PetscViewerGLVisOpen()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscviewer.h.html#PetscViewerGLVisType">include/petscviewer.h</A>

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscviewer.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)  
