# DMSetCellCoordinates
Sets into the DM a global vector that holds the cellwise coordinates 
## Synopsis
```
#include "petscdm.h"          
PetscErrorCode DMSetCellCoordinates(DM dm, Vec c)
```
Collective on dm


## Input Parameters

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



## Notes
The coordinates do include those for ghost points, which are in the local vector.

The vector c should be destroyed by the caller.




## See Also
 `DMSetCellCoordinatesLocal()`, `DMGetCellCoordinates()`, `DMGetCellCoordinatesLocal()`, `DMGetCellCoordinateDM()`

## Level
intermediate

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


---
[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)  
