:orphan: # DMPlexGetAnchors Get the layout of the anchor (point-to-point) constraints. Typically, the user will not have to call DMPlexGetAnchors() directly: if there are anchors, then `DMPlexGetAnchors()` is called during `DMGetDefaultConstraints()`. ## Synopsis ``` #include "petscdmplex.h" PetscErrorCode DMPlexGetAnchors(DM dm, PetscSection *anchorSection, IS *anchorIS) ``` Not Collective ## Input Parameter - ***dm -*** The `DMPLEX` object ## Output Parameters - ***anchorSection -*** If not `NULL`, set to the section describing which points anchor the constrained points. - ***anchorIS -*** If not `NULL`, set to the list of anchors indexed by `anchorSection` ## See Also [](ch_unstructured), `DM`, `DMPLEX`, `DMPlexSetAnchors()`, `DMGetDefaultConstraints()`, `DMSetDefaultConstraints()`, `IS`, `PetscSection` ## Level intermediate ## Location src/dm/impls/plex/plex.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plex.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)