:orphan:
# PetscDualSpaceSetDM
Get the `DM` representing the reference cell 
## Synopsis
```
#include "petscfe.h" 
PetscErrorCode PetscDualSpaceSetDM(PetscDualSpace sp, DM dm)
```
Not Collective


## Input Parameters

- ***sp -*** The `PetscDual`Space
- ***dm -*** The reference cell





## See Also
 `PetscDualSpace`, `DM`, `PetscDualSpaceGetDM()`, `PetscDualSpaceCreate()`

## Level
intermediate

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

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/dualspace/impls/lagrange/tutorials/ex1.c.html">src/dm/dt/dualspace/impls/lagrange/tutorials/ex1.c</A><BR>


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