petsc-3.11.4 2019-09-28
Report Typos and Errors

PetscEqualReal

Returns whether the two real values are equal.

Synopsis

PetscBool PetscEqualReal(PetscReal a,PetscReal b)

Input Parameter

a - first real number
b - second real number

Notes

Equivalent to "a == b". Should be used to prevent compilers from emitting floating point comparison warnings (e.g. GCC's -Wfloat-equal flag) in PETSc header files or user code.

Level

developer

Location

src/sys/utils/matheq.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages