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