# 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
 [](chapter_unstructured), `DM`, `DMPLEX`, `DMPlexSetAnchors()`, `DMGetDefaultConstraints()`, `DMSetDefaultConstraints()`, `IS`, `PetscSection`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plex.c.html#DMPlexGetAnchors">src/dm/impls/plex/plex.c</A>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
