:orphan:
# DMForestRegisterType
Registers a `DMType` as a subtype of `DMFOREST` (so that `DMIsForest()` will be correct) 
## Synopsis
```
#include "petscdmforest.h" 
#include "petscdm.h" 
#include "petscdmlabel.h" 
PetscErrorCode DMForestRegisterType(DMType name)
```
Not Collective


## Input parameter

- ***name -*** the name of the type





## See Also
 `DMFOREST`, `DMIsForest()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/forest/forest.c.html#DMForestRegisterType">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)  
