Creates custom MPI communicator by splitting processes into groups
This subroutine divides processes from an existing communicator into groups based on the specified group type: neighbor groups or strided groups.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(MPI_Comm), | intent(in) | :: | old_comm |
Original MPI communicator to split |
||
| integer(kind=int32), | intent(in) | :: | new_size |
Size of each group in the new communicator |
||
| integer(kind=int32), | intent(in) | :: | group_type |
Type of grouping: NEIGHBOR_GROUP (consecutive ranks) or STRIDED_GROUP (interleaved ranks) |
||
| type(MPI_Comm), | intent(out) | :: | new_comm |
Newly created MPI communicator |