# DMGetCellCoordinateSection
Retrieve the layout of cellwise coordinate values over the mesh. 
## Synopsis
```
#include "petscdm.h"          
PetscErrorCode DMGetCellCoordinateSection(DM dm, PetscSection *section)
```
Collective on dm


## Input Parameter

- ***dm -*** The `DM` object



## Output Parameter

- ***section -*** The `PetscSection` object, or NULL if no cellwise coordinates are defined





## Note
This just retrieves the local section from the cell coordinate `DM`. In other words,
```none
  DMGetCellCoordinateDM(dm, &cdm);
  DMGetLocalSection(cdm, &section);
```



## See Also
 `DM`, `DMGetCoordinateSection()`, `DMSetCellCoordinateSection()`, `DMGetCellCoordinateDM()`, `DMGetCoordinateDM()`, `DMGetLocalSection()`, `DMSetLocalSection()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/interface/dmcoordinates.c.html#DMGetCellCoordinateSection">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)  
