petsc-3.7.1 2016-05-15
Report Typos and Errors

PetscViewerVTKOpen

Opens a file for VTK output.

Synopsis

#include "petscviewer.h" 
PetscErrorCode PetscViewerVTKOpen(MPI_Comm comm,const char name[],PetscFileMode type,PetscViewer *vtk)
Collective on MPI_Comm Many br

Input Parameters

comm - MPI communicator Many br
name - name of file Many br
type - type of file Many br
   FILE_MODE_WRITE - create new file for binary output
   FILE_MODE_READ - open existing file for binary input (not currently supported)
   FILE_MODE_APPEND - open existing file for binary output (not currently supported)

Output Parameter

vtk -PetscViewer for VTK input/output to use with the specified file Many br

Many br

Note

This PetscViewer should be destroyed with PetscViewerDestroy(). Many br

See Also

PetscViewerASCIIOpen(), PetscViewerPushFormat(), PetscViewerDestroy(),
VecView(), MatView(), VecLoad(), MatLoad(), Many brPetscFileMode, PetscViewer Many br

Level:beginner
Location:
src/sys/classes/viewer/impls/vtk/vtkv.c
Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/ksp/ksp/examples/tutorials/ex42.c.html
src/snes/examples/tutorials/ex15.c.html