#include "petscviewer.h" #include "petscsys.h" PetscErrorCode PetscViewerGLVisOpen(MPI_Comm comm, PetscViewerGLVisType type, const char name[], PetscInt port, PetscViewer *viewer)Collective on MPI_Comm
comm | - the MPI communicator | |
type | - the viewer type: PETSC_VIEWER_GLVIS_SOCKET for real-time visualization or PETSC_VIEWER_GLVIS_DUMP for dumping to disk | |
name | - 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 |
-glvis_precision <precision> | - Sets number of digits for floating point values | |
-glvis_size <width,height> | - Sets the window size (in pixels) | |
-glvis_pause <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 |