:orphan:
# PetscDualSpaceRefinedSetCellSpaces
Set the dual spaces for the closures of each of the cells in the multicell `DM` of a `PetscDualSpace`
## Synopsis
```
#include "petscfe.h"
PetscErrorCode PetscDualSpaceRefinedSetCellSpaces(PetscDualSpace sp, const PetscDualSpace cellSpaces[])
```
Collective
## Input Parameters
- ***sp -*** a `PetscDualSpace`
- ***cellSpaces -*** one `PetscDualSpace` for each of the cells. The reference count of each cell space will be incremented,
so the user is still responsible for these spaces afterwards
## See Also
`PETSCDUALSPACEREFINED`, `PetscDualSpace`, `PetscFERefine()`
## Level
intermediate
## Location
src/dm/dt/dualspace/impls/refined/dualspacerefined.c
## Implementations
PetscDualSpaceRefinedSetCellSpaces_Refined in src/dm/dt/dualspace/impls/refined/dualspacerefined.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/dt/dualspace/impls/refined/dualspacerefined.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)