:orphan: # DMPlexVTKWriteAll Write a file containing all the fields that have been provided to the viewer ## Synopsis ``` #include "petscdmplex.h" PetscErrorCode DMPlexVTKWriteAll(PetscObject odm, PetscViewer viewer) ``` Collective ## Input Parameters - ***odm -*** The `DMPLEX` specifying the mesh, passed as a `PetscObject` - ***viewer -*** viewer of type `PETSCVIEWERVTK` ## Note This function is a callback used by the VTK viewer to actually write the file. The reason for this odd model is that the VTK file format does not provide any way to write one field at a time. Instead, metadata for the entire file needs to be available up-front before you can start writing the file. ## See Also [](ch_unstructured), `DM`, `PETSCVIEWEREXODUSII`, `DMPLEX`, `PETSCVIEWERVTK` ## Level developer ## Location src/dm/impls/plex/plexvtk.c ## Implementations DMPlexVTKWriteAll_ASCII in src/dm/impls/plex/plexvtk.c
DMPlexVTKWriteAll_VTU in src/dm/impls/plex/plexvtu.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plexvtk.c) [Index of all DMPlex routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)