Skip to main content
`Ctrl`+`K`

# PetscMPIInt

datatype used to represent `int` parameters to MPI functions.

## Notes

This is always a 32-bit integer even if PETSc was built with `--with-64-bit-indices`. Hence, it is not guaranteed that it is the same as `PetscInt`.

`PetscMPIIntCast`(a,&b) checks if the given `PetscInt` a will fit in a `PetscMPIInt`, if not it generates a `PETSC_ERR_ARG_OUTOFRANGE` error.

## See Also

PETSc and standard datatypes, `PetscBLASInt`, `PetscInt`, `PetscMPIIntCast()`

## Level

intermediate

## Location

include/petscsystypes.h

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages