Skip to main content
`Ctrl`+`K`

# MPIU_SCALAR

Portable MPI datatype corresponding to `PetscScalar` independent of the precision of `PetscScalar`

## Note

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

## See Also

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

## Level

beginner

## Location

include/petscmath.h

## Examples

src/ksp/ksp/tutorials/ex42.c
src/ksp/ksp/tutorials/ex43.c
src/ksp/pc/tutorials/ex4.c
src/dm/impls/plex/tutorials/ex14.c
src/snes/tutorials/ex48.c
src/ts/tutorials/ex14.c
src/dm/impls/plex/tutorials/ex14f90.F90
src/snes/tutorials/ex13.c
src/tao/leastsquares/tutorials/chwirut2f.F90
src/tao/unconstrained/tutorials/eptorsion2f.F90

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