PetscViewerSetType#

Builds PetscViewer for a particular implementation.

Synopsis#

#include "petscviewer.h" 
PetscErrorCode PetscViewerSetType(PetscViewer viewer, PetscViewerType type)

Collective

Input Parameters#

Options Database Key#

  • -viewer_type - Sets the type; use -help for a list of available methods (for instance, ascii)

Note#

See PetscViewerType for possible values

See Also#

Viewers: Looking at PETSc Objects, PetscViewer, PetscViewerCreate(), PetscViewerGetType(), PetscViewerType, PetscViewerPushFormat()

Level#

advanced

Location#

src/sys/classes/viewer/interface/viewreg.c

Examples#

src/dm/tutorials/ex15.c
src/ts/tutorials/ex11_sa.c
src/dm/impls/plex/tutorials/ex1.c
src/ts/tutorials/ex11.c
src/ts/tutorials/ex30.c
src/ksp/ksp/tutorials/ex43.c
src/ksp/ksp/tutorials/ex70.c
src/dm/tutorials/ex20.c
src/dm/tutorials/ex21.c
src/snes/tutorials/ex12.c


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