# DMSetPeriodicity
Set the description of mesh periodicity 
## Synopsis
```
#include "petscdm.h"          
PetscErrorCode DMSetPeriodicity(DM dm, const PetscReal maxCell[], const PetscReal Lstart[], const PetscReal L[])
```

## Input Parameters

- ***dm      -*** The DM object
- ***maxCell -*** Over distances greater than this, we can assume a point has crossed over to another sheet, when trying to localize cell coordinates. Pass NULL to remove such information.
- ***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
 `DMGetPeriodicity()`

## Level
developer

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


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