PetscViewerSetType

Builds PetscViewer for a particular implementation.

Synopsis

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

Input Parameter

viewer - the PetscViewer context
type - for example, PETSCVIEWERASCII

Options Database Command

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

Level: advanced

Notes

See "include/petscviewer.h" for available methods (for instance, PETSCVIEWERSOCKET)

See Also

PetscViewerCreate(), PetscViewerGetType(), PetscViewerType, PetscViewerPushFormat()

Location:viewreg.c