Creates a new communicator that duplicates MPI_COMM_WORLD. This is the standard way to obtain a communicator for application use.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| type(MPI_Comm), | private | :: | dup_comm | ||||
| integer(kind=int32), | private | :: | ierr |
function create_world_comm() result(comm) !! Creates a new communicator that duplicates MPI_COMM_WORLD. !! This is the standard way to obtain a communicator for application use. type(comm_t) :: comm type(MPI_Comm) :: dup_comm integer(int32) :: ierr ! The only communicator there is. comm%m_rank = 0 comm%m_size = 1 comm%is_valid = .true. end function create_world_comm