# PetscGlobalMinMaxInt
Get the global min/max from local min/max input 
## Synopsis
```
#include "petscsys.h"  
PetscErrorCode PetscGlobalMinMaxInt(MPI_Comm comm, const PetscInt minMaxVal[2], PetscInt minMaxValGlobal[2])
```
Collective


## Input Parameter

- ***minMaxVal -*** An array with the local min and max



## Output Parameter

- ***minMaxValGlobal -*** An array with the global min and max





## See Also
 `PetscSplitOwnership()`, `PetscGlobalMinMaxReal()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/utils/mpiu.c.html#PetscGlobalMinMaxInt">src/sys/utils/mpiu.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/utils/mpiu.c)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
