PetscViewerGetFormat#

Gets the current format for PetscViewer.

Synopsis#

#include "petscsys.h" 
PetscErrorCode PetscViewerGetFormat(PetscViewer viewer, PetscViewerFormat *format)

Not collective

Input Parameter#

Output Parameter#

  • format - the format

Notes#

Available formats include

These formats are most often used for viewing matrices and vectors.

If a format (for example PETSC_VIEWER_DRAW_CONTOUR) was applied to a viewer where it didn’t apply (PETSC_VIEWER_STDOUT_WORLD) it cause the default behavior for that viewer to be used.

See Also#

PetscViewer, PetscViewerSetFormat(), PetscViewerASCIIOpen(), PetscViewerBinaryOpen(), MatView(), VecView(), PetscViewerType, PetscViewerPushFormat(), PetscViewerPopFormat(), PetscViewerDrawOpen(), PetscViewerSocketOpen()

Level#

intermediate

Location#

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


Edit on GitLab

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