MPIU_SCALAR — PETSc 3.23.0 documentation

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/dm/impls/plex/tutorials/ex14f90.F90
src/vec/is/sf/tutorials/ex2.c
src/ksp/ksp/tutorials/ex42.c
src/dm/impls/plex/tutorials/ex14.c
src/snes/tutorials/ex13.c
src/ksp/pc/tutorials/ex4.c
src/vec/is/sf/tutorials/ex3.c
src/snes/tutorials/ex48.c
src/ts/tutorials/ex14.c
src/ksp/ksp/tutorials/ex43.c

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