ViewerPushFormat

Sets the format for file viewers.

Synopsis

#include "petsc.h" 
int ViewerPushFormat(Viewer viewer,int format,char *name)
Collective on Viewer

Input Parameters

viewer - the viewer
format - the format
char - optional object name

Notes

Available formats include
VIEWER_FORMAT_ASCII_DEFAULT - default format
VIEWER_FORMAT_ASCII_MATLAB - Matlab format
VIEWER_FORMAT_ASCII_IMPL - implementation-specific format (which is in many cases the same as the default)
VIEWER_FORMAT_ASCII_INFO - basic information about object
VIEWER_FORMAT_ASCII_INFO_LONG - more detailed info about object
VIEWER_FORMAT_ASCII_COMMON - identical output format for all objects of a particular type
VIEWER_FORMAT_ASCII_INDEX - (for vectors) prints the vector element number next to each vector entry
VIEWER_FORMAT_BINARY_NATIVE - store the object to the binary file in its native format (for example, dense matrices are stored as dense)
VIEWER_FORMAT_DRAW_BASIC - views the vector with a simple 1d plot
VIEWER_FORMAT_DRAW_LG - views the vector with a line graph
VIEWER_FORMAT_DRAW_CONTOUR - views the vector with a contour plot
VIEWER_FORMAT_NATIVE - for DA vectors displays vectors in DA ordering, not natural

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

See Also

ViewerASCIIOpen(), ViewerBinaryOpen(), MatView(), VecView(),
ViewerSetFormat(), ViewerPopFormat()

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

Examples

src/vec/examples/tutorials/ex3.c
src/dm/ao/examples/tutorials/ex1.c