:orphan:
# DMGetPeriodicity
Get the description of mesh periodicity 
## Synopsis
```
#include "petscdm.h"          
PetscErrorCode DMGetPeriodicity(DM dm, const PetscReal **maxCell, const PetscReal **Lstart, const PetscReal **L)
```

## Input Parameter

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



## Output Parameters

- ***maxCell -*** Over distances greater than this, we can assume a point has crossed over to another sheet, when trying to localize cell coordinates
- ***Lstart  -*** If we assume the mesh is a torus, this is the start of each coordinate, or `NULL` for 0.0
- ***L       -*** If we assume the mesh is a torus, this is the length of each coordinate, otherwise it is < 0.0





## See Also
 `DM`, `DMGetPeriodicity()`

## Level
developer

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

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/tutorials/ex12.c.html">src/snes/tutorials/ex12.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/interface/dmperiodicity.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)  
