PetscBool PetscEqualScalar(PetscScalar a,PetscScalar b)
a | - first scalar value | |
b | - second scalar value |
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.