Logical equality comparison function. Overloads the /=
operator.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(domain_type), | intent(in) | :: | self | l.h.s. |
||
class(domain_type), | intent(in) | :: | d2 | r.h.s. |
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module.
pure elemental logical function eq(self,d2)
!! Logical equality comparison function. Overloads the `/=` operator.
class(domain_type),intent(in) :: self
!! l.h.s. `domain` instance
class(domain_type),intent(in) :: d2
!! r.h.s. `domain` instance
eq = all(self % getSpectrum() == d2 % getSpectrum())
endfunction eq