:orphan:
# DMGetCoordinatesLocalSetUp
Prepares a local vector of coordinates, so that `DMGetCoordinatesLocalNoncollective()` can be used as non-collective afterwards.
## Synopsis
```
#include "petscdm.h"
PetscErrorCode DMGetCoordinatesLocalSetUp(DM dm)
```
Collective
## Input Parameter
- ***dm -*** the `DM`
## See Also
`DM`, `DMSetCoordinates()`, `DMGetCoordinatesLocalNoncollective()`
## Level
advanced
## Location
src/dm/interface/dmcoordinates.c
## Examples
src/dm/impls/plex/tutorials/ex10.c
src/dm/impls/plex/tutorials/ex8.c
src/dm/impls/plex/tutorials/ex9.c
src/snes/tutorials/ex23.c
src/ts/tutorials/ex52.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/interface/dmcoordinates.c)
[Index of all DM routines](index.md)
[Table of Contents for all manual pages](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)