is_equal Function

public pure function is_equal(self, lhs, tol)

Compare two field_type instance based on their data value

f1 = field_type(u0, dx)
f2 = field_type(u0, dx2)
f1%is_equal(f2) ! true

Arguments

Type IntentOptional Attributes Name
class(field_type), intent(in) :: self

Right hand side of comparison

class(field_type), intent(in) :: lhs

Left hand side of comparison

real, intent(in) :: tol

Absolute tolerance when comparing fields values

Return Value logical


Contents