GMatView

Views a grid matrix.

Synopsis

#include "gvec.h" 
int GMatView(GMat mat, PetscViewer viewer)

Input Parameters

mat - the grid matrix
viewer - an optional visualization context

Notes

GMatView() supports the same viewers as MatView(). The only difference is that for all multiprocessor cases, the output vector employs the natural ordering of the grid, so it many cases this corresponds to the ordering that would have been used for the uniprocessor case.

The available visualization contexts include

    VIEWER_STDOUT_SELF - standard output (default)
    VIEWER_STDOUT_WORLD - synchronized standard
      output where only the first processor opens
      the file.  All other processors send their 
      data to the first processor to print. 

The user can open alternative visualization contexts with

   PetscViewerFileOpenASCII() - output vector to a specified file
   PetscViewerFileOpenBinary() - output in binary to a
        specified file; corresponding input uses VecLoad()
   PetscViewerDrawOpenX() - output vector to an X window display
   DrawLGCreate() - output vector as a line graph to an X window display
   PetscViewerMatlabOpen() - output vector to Matlab viewer

Keywords

view, visualize, output, print, write, draw

See Also

MatView()

Level:beginner
Location:
src/gvec/interface/gmat.c
Index of all GVec routines
Table of Contents for all manual pages
Index of all manual pages