PetscViewerPushFormat#

Sets the format for a PetscViewer.

Synopsis#

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

Logically Collective

Input Parameters#

Notes#

Available formats include

These formats are most often used for viewing matrices and vectors. Currently, the object name is used only in the MATLAB format.

See Also#

PetscViewer, PetscViewerASCIIOpen(), PetscViewerBinaryOpen(), MatView(), VecView(), PetscViewerSetFormat(), PetscViewerPopFormat()

Level#

intermediate

Location#

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

Examples#

src/sys/classes/viewer/tutorials/ex2.c.html
src/vec/vec/tutorials/ex3.c.html
src/vec/is/sf/tutorials/ex1.c.html
src/vec/is/sf/tutorials/ex1f.F90.html
src/mat/tutorials/ex10.c.html
src/dm/impls/plex/tutorials/ex5.c.html
src/dm/tutorials/ex22.c.html
src/dm/tutorials/ex7.c.html
src/ksp/ksp/tutorials/ex27.c.html
src/ksp/ksp/tutorials/ex34.c.html
src/ksp/ksp/tutorials/ex54.c.html


Edit on GitLab

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