:orphan:
# DMDASetUniformCoordinates
Sets a `DMDA` coordinates to be a uniform grid
## Synopsis
```
#include "petscdmda.h"
PetscErrorCode DMDASetUniformCoordinates(DM da, PetscReal xmin, PetscReal xmax, PetscReal ymin, PetscReal ymax, PetscReal zmin, PetscReal zmax)
```
Collective
## Input Parameters
- ***da -*** the distributed array object
- ***xmin,xmax -*** extremes in the x direction
- ***ymin,ymax -*** extremes in the y direction (value ignored for 1 dimensional problems)
- ***zmin,zmax -*** extremes in the z direction (value ignored for 1 or 2 dimensional problems)
## See Also
`DM`, `DMDA`, `DMSetCoordinates()`, `DMGetCoordinates()`, `DMDACreate1d()`, `DMDACreate2d()`, `DMDACreate3d()`, `DMStagSetUniformCoordinates()`
## Level
beginner
## Location
src/dm/impls/da/gr1.c
## Examples
src/dm/tutorials/ex10.c
src/dm/tutorials/ex13f90.F90
src/dm/tutorials/ex20.c
src/dm/tutorials/ex21.c
src/dm/tutorials/ex25.c
src/dm/tutorials/ex3.c
src/dm/tutorials/ex4.c
src/dm/tutorials/swarm_ex1.c
src/dm/tutorials/swarm_ex3.c
src/ksp/ksp/tutorials/ex29.c
src/ksp/ksp/tutorials/ex42.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/da/gr1.c)
[Index of all DMDA routines](index.md)
[Table of Contents for all manual pages](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)