:orphan:
# DMForestGetTopology
Get a string describing the topology of a `DMFOREST`. 
## Synopsis
```
#include "petscdmforest.h" 
#include "petscdm.h" 
#include "petscdmlabel.h" 
PetscErrorCode DMForestGetTopology(DM dm, DMForestTopology *topology)
```
Not Collective


## Input parameter

- ***dm -*** the forest



## Output parameter

- ***topology -*** the topology of the forest (e.g., 'cube', 'shell')





## See Also
 `DM`, `DMFOREST`, `DMForestSetTopology()`

## Level
intermediate

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


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


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