:orphan: # PetscViewerVTKGetDM get the `DM` associated with the `PETSCVIEWERVTK` viewer ## Synopsis ``` #include "petscviewer.h" PetscErrorCode PetscViewerVTKGetDM(PetscViewer viewer, PetscObject *dm) ``` Collective ## Input Parameters - ***viewer -*** `PETSCVIEWERVTK` viewer - ***dm -*** `DM` associated with the viewer (as a `PetscObject`) ## See Also [](sec_viewers), `PETSCVIEWERVTK`, `PetscViewerVTKOpen()`, `DMDAVTKWriteAll()`, `PetscViewerVTKWriteFunction`, `PetscViewerVTKAddField()` ## Level developer ## Location src/sys/classes/viewer/impls/vtk/vtkv.c ## Implementations PetscViewerVTKGetDM_VTK in src/sys/classes/viewer/impls/vtk/vtkv.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/viewer/impls/vtk/vtkv.c) [Index of all Viewer routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)