SplitProcessGrid Subroutine

public subroutine SplitProcessGrid(old_grid, new_grid, my_color, split_slice, between_grid_comm)

Given a process grid, this splits it into two grids of even size

Arguments

Type IntentOptional AttributesName
type(ProcessGrid_t), intent(inout) :: old_grid

The old grid to split

type(ProcessGrid_t), intent(inout) :: new_grid

The new grid that we are creating

integer, intent(out) :: my_color

A color value indicating which set this process was split into

logical, intent(out) :: split_slice

True if we were able to split along slices.

integer, intent(out) :: between_grid_comm

A communicator for sending messages between groups.


Contents

None