:orphan: # DMIsForest Check whether a DM uses the DMFOREST interface for hierarchically-refined meshes ## Synopsis ``` #include "petscdmforest.h" #include "petscdm.h" #include "petscdmlabel.h" PetscErrorCode DMIsForest(DM dm, PetscBool *isForest) ``` Not Collective ## Input parameter - ***dm -*** the DM object ## Output parameter - ***isForest -*** whether dm is a subtype of DMFOREST ## See Also `DMFOREST`, `DMForestRegisterType()` ## Level intermediate ## Location src/dm/impls/forest/forest.c ## Examples src/ts/tutorials/ex11.c
--- [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)