:orphan: # MPIU_SCALAR Portable MPI datatype corresponding to `PetscScalar` independent of the precision of `PetscScalar` ## Notes 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/ex14.c
src/ksp/ksp/tutorials/ex42.c
src/ksp/ksp/tutorials/ex43.c
src/snes/tutorials/ex13.c
src/snes/tutorials/ex48.c
src/tao/bound/tutorials/plate2f.F90
src/tao/leastsquares/tutorials/chwirut2f.F90
src/tao/unconstrained/tutorials/eptorsion2f.F90
src/ts/tutorials/ex14.c
src/vec/is/sf/tutorials/ex2.c
src/vec/is/sf/tutorials/ex3.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscmath.h) [Index of all Sys routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)