comm_discard_to Function

private function comm_discard_to(this, num_ranks) result(new_comm)

Type Bound

comm_t

Arguments

Type IntentOptional Attributes Name
class(comm_t), intent(in) :: this
integer, intent(in) :: num_ranks

Return Value type(comm_t)


Variables

Type Visibility Attributes Name Initial
integer, private :: color

Source Code

   function comm_discard_to(this, num_ranks) result(new_comm)
      class(comm_t), intent(in) :: this
      integer, intent(in) :: num_ranks
      type(comm_t) :: new_comm
      integer :: color

      ! Every split of one rank is that rank.
      new_comm = this
   end function comm_discard_to