PetscReal#

PETSc type that represents a real number version of PetscScalar

Notes#

For MPI calls that require datatypes, use MPIU_REAL as the datatype for PetscReal and MPIU_SUM, MPIU_MAX, etc. for operations. They will automatically work correctly regardless of the size of PetscReal.

See PetscScalar for details on how to ./configure the size of PetscReal.

See Also#

PetscScalar, PetscComplex, PetscInt, MPIU_REAL, MPIU_SCALAR, MPIU_COMPLEX, MPIU_INT

Level#

beginner

Location#

include/petscsystypes.h

Examples#

src/dm/dt/dualspace/impls/lagrange/tutorials/ex2.c
src/dm/field/tutorials/ex1.c
src/dm/impls/plex/tutorials/ex3f90.F90
src/dm/impls/stag/tutorials/ex6.c
src/dm/impls/swarm/tutorials/ex1.c
src/dm/tutorials/ex13f90.F90
src/dm/tutorials/ex13f90aux.F90
src/dm/tutorials/ex20.c
src/dm/tutorials/ex21.c
src/dm/tutorials/swarm_ex1.c
src/dm/tutorials/swarm_ex3.c


Edit on GitLab

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