almost_equal Function

public elemental function almost_equal(a, b, tol) result(res)

Checks whether a == b within tolerance Elemental functions operate on scalars or arrays of compatible shape If one of the arguments is an array, the output is an array of same shape

Arguments

Type IntentOptional Attributes Name
real(kind=GP), intent(in) :: a
real(kind=GP), intent(in) :: b
real(kind=GP), intent(in) :: tol

Return Value logical