MPIU_REAL — PETSc 3.25.1 documentation

Skip to main content
`Ctrl`+`K`

# MPIU_REAL

Portable MPI datatype corresponding to `PetscReal` independent of what precision `PetscReal` is in

## Note

In MPI calls that require an MPI datatype that matches a `PetscReal` or array of `PetscReal` values, pass this value.

## See Also

`PetscReal`, `PetscScalar`, `PetscComplex`, `PetscInt`, `MPIU_SCALAR`, `MPIU_COMPLEX`, `MPIU_INT`

## Level

beginner

## Location

include/petscmath.h

## Examples

src/tao/leastsquares/tutorials/chwirut2.c
src/sys/tutorials/ex3f90.F90
src/ksp/ksp/tutorials/ex82.c
src/snes/tutorials/ex13.c
src/tao/constrained/tutorials/ex1.c
src/snes/tutorials/ex48.c
src/sys/classes/random/tutorials/ex2.c
src/dm/impls/plex/tutorials/ex15.c
src/tao/bound/tutorials/plate2f.F90
src/tao/bound/tutorials/plate2.c

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