The AHA Model  Revision: 12809
Reference implementation 04 (HEDG02_04)
commondata::operator(.feq.) Interface Reference

"Float equality" operator: Check if two real values are nearly equal using the commondata::is_near_zero() function. Thus function can be used for comparing two real values like the below. More...

Collaboration diagram for commondata::operator(.feq.):

Detailed Description

"Float equality" operator: Check if two real values are nearly equal using the commondata::is_near_zero() function. Thus function can be used for comparing two real values like the below.

  • The exact real comparison (incorrect due to possible rounding):
    if ( a == b ) ...
  • should be substituted by such comparison:
    if ( a .feq. b) ...

See the backend procedures commondata::float_equal_srp_operator() and commondata::float_equal_hrp_operator() for details and Float point for an introduction.

Definition at line 5428 of file m_common.f90.


The documentation for this interface was generated from the following file: