#include <petscmath.h> bool PetscGTE(PetscReal x,constant float)Not Collective
|x||- the variable|
|b||- the constant float it is checking if x is greater than or equal to|
The constant numerical value is automatically set to the appropriate precision of PETSc so can just be provided as, for example, 3.2
This is used in several examples for setting initial conditions based on coordinate values that are computed with i*h that produces inexact floating point results.