# 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 PetscObject)





## See Also
 `PETSCVIEWERVTK`, `PetscViewerVTKOpen()`, `DMDAVTKWriteAll()`, `PetscViewerVTKWriteFunction`, `PetscViewerVTKAddField()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/viewer/impls/vtk/vtkv.c.html#PetscViewerVTKGetDM">src/sys/classes/viewer/impls/vtk/vtkv.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/viewer/impls/vtk/vtkv.c.html#PetscViewerVTKGetDM_VTK">PetscViewerVTKGetDM_VTK in src/sys/classes/viewer/impls/vtk/vtkv.c</A><BR>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
