petsc-3.7.1 2016-05-15
Report Typos and Errors

PetscViewerPushFormat

Sets the format for file PetscViewers.

Synopsis

#include "petscsys.h" 
PetscErrorCode  PetscViewerPushFormat(PetscViewer viewer,PetscViewerFormat format)
Logically Collective on PetscViewer Many br

Input Parameters

viewer - the PetscViewer Many br
format - the format Many br

Many br

Notes

Available formats include Many br
PETSC_VIEWER_DEFAULT - default format Many br
PETSC_VIEWER_ASCII_MATLAB - MATLAB format Many br
PETSC_VIEWER_ASCII_IMPL - implementation-specific format Many br(which is in many cases the same as the default) Many br
PETSC_VIEWER_ASCII_INFO - basic information about object Many br
PETSC_VIEWER_ASCII_INFO_DETAIL - more detailed info Many brabout object Many br
PETSC_VIEWER_ASCII_COMMON - identical output format for Many brall objects of a particular type Many br
PETSC_VIEWER_ASCII_INDEX - (for vectors) prints the vector Many brelement number next to each vector entry Many br
PETSC_VIEWER_NATIVE - store the object to the binary Many brfile in its native format (for example, dense Many brmatrices are stored as dense), for DMDA vectors displays vectors in DMDA ordering, not natural Many br
PETSC_VIEWER_DRAW_BASIC - views the vector with a simple 1d plot Many br
PETSC_VIEWER_DRAW_LG - views the vector with a line graph Many br
PETSC_VIEWER_DRAW_CONTOUR - views the vector with a contour plot Many br

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

See Also

PetscViewerASCIIOpen(), PetscViewerBinaryOpen(), MatView(), VecView(),
PetscViewerSetFormat(), PetscViewerPopFormat() Many br

Level:intermediate
Location:
src/sys/classes/viewer/interface/viewa.c
Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/sys/classes/viewer/examples/tutorials/ex2.c.html
src/vec/vec/examples/tutorials/ex3.c.html
src/vec/is/sf/examples/tutorials/ex1.c.html
src/dm/impls/plex/examples/tutorials/ex1.c.html
src/dm/impls/plex/examples/tutorials/ex1f90.F.html
src/dm/examples/tutorials/ex7.c.html
src/ksp/ksp/examples/tutorials/ex4.c.html
src/ksp/ksp/examples/tutorials/ex54.c.html
src/ksp/ksp/examples/tutorials/ex55.c.html
src/ksp/ksp/examples/tutorials/ex56.c.html
src/snes/examples/tutorials/ex12.c.html