get_parent Function

private elemental function get_parent(n) result(parent)

Arguments

TypeIntentOptionalAttributesName
integer, intent(in) :: n

Return Value integer


Contents

Source Code


Source Code

   ELEMENTAL FUNCTION get_parent(n) RESULT(parent)
      INTEGER, INTENT(IN)                                :: n
      INTEGER                                            :: parent

      parent = INT(n/2)
   END FUNCTION get_parent