:orphan:
# DMGetLocalBoundingBox
Returns the bounding box for the piece of the `DM` on this process. 
## Synopsis
```
#include "petscdm.h"          
PetscErrorCode DMGetLocalBoundingBox(DM dm, PetscReal lmin[], PetscReal lmax[])
```
Not Collective


## Input Parameter

- ***dm -*** the `DM`



## Output Parameters

- ***lmin -*** local minimum coordinates (length coord dim, optional)
- ***lmax -*** local maximum coordinates (length coord dim, optional)





## Note
If the `DM` is a `DMDA` and has no coordinates, the index bounds are returned instead.


## See Also
 `DM`, `DMGetCoordinates()`, `DMGetCoordinatesLocal()`, `DMGetBoundingBox()`

## Level
beginner

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


---
[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)  
