PetscViewerGLVisOpen#
Opens a PETSCVIEWERGLVIS
PetscViewer
Synopsis#
#include "petscviewer.h"
#include "petscsys.h"
PetscErrorCode PetscViewerGLVisOpen(MPI_Comm comm, PetscViewerGLVisType type, const char name[], PetscInt port, PetscViewer *viewer)
Collective; No Fortran Support
Input Parameters#
comm - the MPI communicator
type - the viewer type:
PETSC_VIEWER_GLVIS_SOCKET
for real-time visualization orPETSC_VIEWER_GLVIS_DUMP
for dumping to a filename - either the hostname where the GLVis server is running or the base filename for dumping the data for subsequent visualizations
port - socket port where the GLVis server is listening. Not referenced when type is
PETSC_VIEWER_GLVIS_DUMP
Output Parameter#
viewer - the
PetscViewer
object
Options Database Keys#
-glvis_precision
- Sets number of digits for floating point values-glvis_size <width,height> - Sets the window size (in pixels)
-glvis_pause
- Sets time (in seconds) that the program pauses after each visualization (0 is default, -1 implies every visualization)-glvis_keys - Additional keys to configure visualization
-glvis_exec - Additional commands to configure visualization
See Also#
Viewers: Looking at PETSc Objects, PETSCVIEWERGLVIS
, PetscViewerCreate()
, PetscViewerSetType()
, PetscViewerGLVisType
Level#
beginner
Location#
Examples#
Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages