:orphan: # DMPlexCreateDefaultReferenceTree create a reference tree for isotropic hierarchical mesh refinement. ## Synopsis ``` #include "petscdmplex.h" PetscErrorCode DMPlexCreateDefaultReferenceTree(MPI_Comm comm, PetscInt dim, PetscBool simplex, DM *ref) ``` Collective ## Input Parameters - ***comm -*** the MPI communicator - ***dim -*** the spatial dimension - ***simplex -*** Flag for simplex, otherwise use a tensor-product cell ## Output Parameter - ***ref -*** the reference tree `DMPLEX` object ## See Also `DMPlexSetReferenceTree()`, `DMPlexGetReferenceTree()` ## Level intermediate ## Location src/dm/impls/plex/plextree.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plextree.c) [Index of all DMPlex routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)