:orphan:
# DMGetBoundingBox
Returns the global bounding box for the `DM`.
## Synopsis
```
#include "petscdm.h"
PetscErrorCode DMGetBoundingBox(DM dm, PetscReal gmin[], PetscReal gmax[])
```
Collective
## Input Parameter
- ***dm -*** the `DM`
## Output Parameters
- ***gmin -*** global minimum coordinates (length coord dim, optional)
- ***gmax -*** global maximum coordinates (length coord dim, optional)
## See Also
`DM`, `DMGetLocalBoundingBox()`, `DMGetCoordinates()`, `DMGetCoordinatesLocal()`
## Level
beginner
## Location
src/dm/interface/dmcoordinates.c
## Examples
src/dm/impls/swarm/tutorials/ex1.c
src/ksp/ksp/tutorials/ex42.c
src/ksp/ksp/tutorials/ex43.c
src/snes/tutorials/ex23.c
src/ts/tutorials/ex53.c
---
[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](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)