# PCGetDM
Gets the DM that may be used by some preconditioners 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCGetDM(PC pc, DM *dm)
```
Not Collective


## Input Parameter

- ***pc -*** the preconditioner context



## Output Parameter

- ***dm -*** the dm





## See Also
 `PCSetDM()`, `KSPSetDM()`, `KSPGetDM()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/interface/pcset.c.html#PCGetDM">src/ksp/pc/interface/pcset.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/interface/pcset.c)


[Index of all PC routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
