MPIU_REAL — PETSc 3.21.4 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/sys/classes/random/tutorials/ex2.c
src/ksp/ksp/tutorials/ex82.c
src/tao/constrained/tutorials/ex1.c
src/ts/tutorials/ex11_sa.c
src/snes/tutorials/ex48.c
src/tao/unconstrained/tutorials/eptorsion2.c
src/tao/leastsquares/tutorials/chwirut2.c
src/snes/tutorials/ex13.c
src/tao/unconstrained/tutorials/minsurf2.c
src/tao/bound/tutorials/plate2.c

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