# DMSetCoordinateSection
Set the layout of coordinate values over the mesh. 
## Synopsis
```
#include "petscdm.h"          
PetscErrorCode DMSetCoordinateSection(DM dm, PetscInt dim, PetscSection section)
```
Not Collective


## Input Parameters

- ***dm      -*** The `DM` object
- ***dim     -*** The embedding dimension, or `PETSC_DETERMINE`
- ***section -*** The `PetscSection` object





## See Also
 `DM`, `DMGetCoordinateDim()`, `DMGetCoordinateSection()`, `DMGetLocalSection()`, `DMSetLocalSection()`

## Level
intermediate

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

## Examples
<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)  
