Skip to main content
`Ctrl`+`K`

# PetscViewerType

String with the name of a PETSc `PetscViewer` implementation

## Synopsis

    typedef const char *PetscViewerType;
    #define PETSCVIEWERSOCKET      "socket"
    #define PETSCVIEWERASCII       "ascii"
    #define PETSCVIEWERBINARY      "binary"
    #define PETSCVIEWERSTRING      "string"
    #define PETSCVIEWERDRAW        "draw"
    #define PETSCVIEWERVU          "vu"
    #define PETSCVIEWERMATHEMATICA "mathematica"
    #define PETSCVIEWERHDF5        "hdf5"
    #define PETSCVIEWERVTK         "vtk"
    #define PETSCVIEWERMATLAB      "matlab"
    #define PETSCVIEWERSAWS        "saws"
    #define PETSCVIEWERGLVIS       "glvis"
    #define PETSCVIEWERADIOS       "adios"
    #define PETSCVIEWEREXODUSII    "exodusii"
    #define PETSCVIEWERCGNS        "cgns"
    #define PETSCVIEWERPYTHON      "python"
    #define PETSCVIEWERPYVISTA     "pyvista"

## See Also

Viewers: Looking at PETSc Objects, `PetscViewerSetType()`, `PetscViewer`, `PetscViewerRegister()`, `PetscViewerCreate()`

## Level

beginner

## Location

include/petscviewer.h

## Examples

src/dm/impls/plex/tutorials/ex19.c

Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages