# DMSwarmGetCellDM
Fetches the attached cell DM 
## Synopsis
```
#include "petscdmswarm.h"   
PetscErrorCode DMSwarmGetCellDM(DM dm, DM *dmcell)
```
Collective on dm


## Input parameter

- ***dm -*** a DMSwarm



## Output parameter

- ***dmcell -*** the DM which was attached to the DMSwarm





## See Also
 `DMSwarmSetCellDM()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/swarm/swarm.c.html#DMSwarmGetCellDM">src/dm/impls/swarm/swarm.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex70.c.html">src/ksp/ksp/tutorials/ex70.c.html</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex77.c.html">src/ts/tutorials/ex77.c.html</A><BR>


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


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