ViewerSetFormat

Sets the format for viewers.

Synopsis

#include "petsc.h" 
int ViewerSetFormat(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_DENSE - print matrix as dense
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

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

Keywords

Viewer, file, set, format

See Also

ViewerASCIIOpen(), ViewerBinaryOpen(), MatView(), VecView(),
ViewerPushFormat(), ViewerPopFormat(), ViewerDrawOpenX(),ViewerSocketOpen()

Level:intermediate
Location:src/sys/src/viewer/interface/viewa.c
Viewer Index
Table of Contents