# DMSetCoordinatesLocal
Sets into the `DM` a local vector, including ghost points, that holds the coordinates 
## Synopsis
```
#include "petscdm.h"          
PetscErrorCode DMSetCoordinatesLocal(DM dm, Vec c)
```
Not collective


## Input Parameters

- ***dm -*** the `DM`
- ***c -*** coordinate vector





## Notes
The coordinates of ghost points can be set using `DMSetCoordinates()`
followed by `DMGetCoordinatesLocal()`. This is intended to enable the
setting of ghost coordinates outside of the domain.

The vector c should be destroyed by the caller.


## See Also
 `DM`, `DMGetCoordinatesLocal()`, `DMSetCoordinates()`, `DMGetCoordinates()`, `DMGetCoordinateDM()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/interface/dmcoordinates.c.html#DMSetCoordinatesLocal">src/dm/interface/dmcoordinates.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/tutorials/ex56.c.html">src/snes/tutorials/ex56.c.html</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex11.c.html">src/ts/tutorials/ex11.c.html</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex11_sa.c.html">src/ts/tutorials/ex11_sa.c.html</A><BR>


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