PetscViewerVTKAddField#
Add a field to the viewer
Synopsis#
#include "petscviewer.h"
PetscErrorCode PetscViewerVTKAddField(PetscViewer viewer, PetscObject dm, PetscViewerVTKWriteFn *write, PetscInt fieldnum, PetscViewerVTKFieldType fieldtype, PetscBool checkdm, PetscObject vec)
Collective
Input Parameters#
viewer -
PETSCVIEWERVTKwrite - function to write this
Vec, seePetscViewerVTKWriteFnfieldnum - which field of the
DMto write (PETSC_DEFAULTif the whole vector should be written)fieldtype - Either
PETSC_VTK_POINT_FIELDorPETSC_VTK_CELL_FIELDcheckdm - whether to check for identical dm arguments as fields are added
vec -
Vecfrom which to write
Note#
This routine keeps exclusive ownership of the Vec. The caller should not use or destroy the Vec after calling it.
See Also#
Viewers: Looking at PETSc Objects, PETSCVIEWERVTK, PetscViewerVTKOpen(), DMDAVTKWriteAll(), PetscViewerVTKWriteFn, PetscViewerVTKGetDM()
Level#
developer
Location#
Implementations#
PetscViewerVTKAddField_VTK() in 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