PetscViewerMathematicaOpen

Communicates with Mathemtica using MathLink.

Synopsis

int PetscViewerMathematicaOpen(MPI_Comm comm, int port, const char machine[], const char mode[], PetscViewer *v)
Collective on comm

Input Parameters

comm - The MPI communicator
port - [optional] The port to connect on, or PETSC_DECIDE
machine - [optional] The machine to run Mathematica on, or PETSC_NULL
mode - [optional] The connection mode, or PETSC_NULL

Output Parameter

viewer -The Mathematica viewer

Notes

Most users should employ the following commands to access the Mathematica viewers

   PetscViewerMathematicaOpen(MPI_Comm comm, int port, char *machine, char *mode, PetscViewer &viewer)
   MatView(Mat matrix, PetscViewer viewer)

               or

   PetscViewerMathematicaOpen(MPI_Comm comm, int port, char *machine, char *mode, PetscViewer &viewer)
   VecView(Vec vector, PetscViewer viewer)

Options Database Keys

   -viewer_math_machine <machine> - The host machine for the kernel
   -viewer_math_port <port>       - The port for connection
   -viewer_math_mode <mode>       - The mode, e.g. Launch, Connect
   -viewer_math_type <type>       - The plot type, e.g. Triangulation, Vector
   -viewer_math_graphics <output> - The output type, e.g. Motif, PS, PSFile

Keywords

PetscViewer, Mathematica, open

See Also

MatView(), VecView()

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