:orphan: # 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 `DM`, `DMGetPeriodicity()` ## Level developer ## Location src/dm/interface/dmperiodicity.c --- [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)