Computes local portions of data based on global count and position inside grid communicator
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int32), | intent(in) | :: | n_global |
Global number of points |
||
type(MPI_Comm), | intent(in) | :: | comm |
Grid communicator |
||
integer(kind=int32), | intent(out) | :: | start |
Local start |
||
integer(kind=int32), | intent(out) | :: | count |
Local count |
||
logical, | intent(out) | :: | is_even |
Is data evenly distributed across processes |