VIEWER_SOCKET_

Creates a socket viewer shared by all processors in a communicator.

Synopsis

Viewer VIEWER_SOCKET_(MPI_Comm comm)
Collective on MPI_Comm

Input Parameter

comm - the MPI communicator to share the socket viewer

Options Database Keys

For use with the default Matlab viewer, VIEWER_SOCKET_WORLD or if PETSC_NULL is passed for machine or PETSC_DEFAULT is passed for port
   -viewer_socket_machine <machine>
   -viewer_socket_port <port>

Environmental variables

Notes

Unlike almost all other PETSc routines, VIEWER_SOCKET_ does not return an error code. The socket viewer is usually used in the form
      XXXView(XXX object,VIEWER_SOCKET_(comm));

Currently the only socket client available is Matlab. See src/dm/da/examples/tests/ex12.c and ex12.m for an example of usage.

Connects to a waiting socket and stays connected until ViewerDestroy() is called.

See Also

VIEWER_SOCKET_WORLD, VIEWER_SOCKET_SELF, ViewerSocketOpen(), ViewerCreate(),
ViewerSocketSetConnection(), ViewerDestroy()

Level:intermediate
Location:src/sys/src/viewer/impls/socket/send.c
Viewer Index
Table of Contents

PETSC_VIEWER_SOCKET_PORT portnumber- - PETSC_VIEWER_SOCKET_MACHINE machine name