petsc-master 2017-08-19
Report Typos and Errors

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 PetscScalar 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, MPIU_REAL, MPIU_SCALAR

Level:beginner
Location:
include/petscsys.h
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/sys/classes/random/examples/tutorials/ex1.c.html
src/sys/classes/random/examples/tutorials/ex2.c.html
src/sys/logging/examples/tutorials/ex1f.F90.html
src/sys/examples/tutorials/ex5f90.F90.html
src/vec/vec/examples/tutorials/ex1.c.html
src/vec/vec/examples/tutorials/ex3.c.html
src/mat/examples/tutorials/ex16.c.html
src/dm/examples/tutorials/swarm_ex1.c.html
src/dm/examples/tutorials/ex13f90aux.F90.html
src/dm/examples/tutorials/ex13f90.F90.html
src/ksp/ksp/examples/tutorials/ex3.c.html