PetscViewerSetFormat#

Sets the format for a PetscViewer.

Synopsis#

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

Logically Collective

This routine is deprecated, you should use PetscViewerPushFormat()/PetscViewerPopFormat()

Input Parameters#

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.

Note#

This supports passing in a NULL for the viewer for use in the debugger, but it should never be called in the code with a NULL viewer

See Also#

Viewers: Looking at PETSc Objects, PetscViewerGetFormat(), 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