Set homogeneity flag.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(hash_table), | intent(inout) | :: | self | The hash table. |
||
logical, | intent(in), | optional | :: | homogeneous | If true the hash is supposed to accept only homogeneous nodes. |
pure subroutine set_homogeneous(self, homogeneous)
!---------------------------------------------------------------------------------------------------------------------------------
!< Set homogeneity flag.
!---------------------------------------------------------------------------------------------------------------------------------
class(hash_table), intent(inout) :: self !< The hash table.
logical, intent(in), optional :: homogeneous !< If true the hash is supposed to accept only homogeneous nodes.
!---------------------------------------------------------------------------------------------------------------------------------
!---------------------------------------------------------------------------------------------------------------------------------
self%is_homogeneous_ = .false. ; if (present(homogeneous)) self%is_homogeneous_ = homogeneous
!---------------------------------------------------------------------------------------------------------------------------------
endsubroutine set_homogeneous