# PetscDualSpaceGetDM
Get the `DM` representing the reference cell of a `PetscDualSpace` 
## Synopsis
```
#include "petscfe.h" 
PetscErrorCode PetscDualSpaceGetDM(PetscDualSpace sp, DM *dm)
```
Not collective


## Input Parameter

- ***sp -*** The `PetscDualSpace`



## Output Parameter

- ***dm -*** The reference cell, that is a `DM` that consists of a single cell





## See Also
 `PetscDualSpace`, `PetscDualSpaceSetDM()`, `PetscDualSpaceCreate()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/dualspace/interface/dualspace.c.html#PetscDualSpaceGetDM">src/dm/dt/dualspace/interface/dualspace.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/dt/dualspace/interface/dualspace.c)


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