DAView

Visualizes a distributed array object.

Synopsis

int DAView(DA da, Viewer v)
Collective on DA, unless Viewer is VIEWER_STDOUT_SELF

Input Parameters

da - the distributed array
ptr - an optional visualization context

Notes

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.
VIEWER_DRAWX_WORLD - to default window

The user can open alternative vistualization contexts with

ViewerFileOpenASCII() - Outputs vector to a specified file
ViewerDrawOpenX() - Outputs vector to an X window display

Default Output Format

(for 3d arrays)
   Processor [proc] M  N  P  m  n  p  w  s
   X range: xs xe, Y range: ys, ye, Z range: zs, ze

   where
      M,N,P - global dimension in each direction of the array
      m,n,p - corresponding number of procs in each dimension 
      w - number of degrees of freedom per node
      s - stencil width
      xs, xe - internal local starting/ending grid points
               in x-direction, (augmented to handle multiple 
               degrees of freedom per node)
      ys, ye - local starting/ending grid points in y-direction
      zs, ze - local starting/ending grid points in z-direction

Options Database Key

-da_view -Calls DAView() at the conclusion of DACreate1d(), DACreate2d(), and DACreate3d()

Notes

Use DAGetCorners() and DAGetGhostCorners() to get the startingand ending grid points (ghost points) in each direction.

Keywords

distributed array, view, visualize

See Also

ViewerFileOpenASCII(), ViewerDrawOpenX(), DAGetInfo(), DAGetCorners(),
DAGetGhostCorners()

Examples

src/snes/examples/tutorials/ex5f.F
src/snes/examples/tutorials/ex5f90.F
src/snes/examples/tutorials/ex5.c
src/snes/examples/tutorials/ex7.c
src/snes/examples/tutorials/ex8.c
src/snes/examples/tutorials/ex9.c

Location: src/da/src/daview.c
IS and DA Index
Table of Contents