comm_split_shared Function

private function comm_split_shared(this) result(new_comm)

Creates a new communicator containing only processes that share memory with each other (typically processes on the same node)

Type Bound

comm_t

Arguments

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

Return Value type(comm_t)


Variables

Type Visibility Attributes Name Initial
integer(kind=int32), private :: ierr
type(MPI_Comm), private :: mpi_comm_new

Source Code

   function comm_split_shared(this) result(new_comm)
   !! Creates a new communicator containing only processes that share
   !! memory with each other (typically processes on the same node)
      class(comm_t), intent(in) :: this
      type(comm_t) :: new_comm
      type(MPI_Comm) :: mpi_comm_new
      integer(int32) :: ierr

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