:orphan: # DMPlexGetTreeParent get the parent of a point in the tree describing the point hierarchy (not the DAG) ## Synopsis ``` #include "petscdmplex.h" PetscErrorCode DMPlexGetTreeParent(DM dm, PetscInt point, PetscInt *parent, PetscInt *childID) ``` ## Input Parameters - ***dm -*** the `DMPLEX` object - ***point -*** the query point ## Output Parameters - ***parent -*** if not `NULL`, set to the parent of the point, or the point itself if the point does not have a parent - ***childID -*** if not `NULL`, set to the child ID of the point with respect to its parent, or 0 if the point does not have a parent ## See Also [](ch_unstructured), `DM`, `DMPLEX`, `DMPlexSetTree()`, `DMPlexGetTree()`, `DMPlexGetTreeChildren()` ## 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)