Gathers are inherently expensive and are best used either 1. Near the beginning/end of execution to amortize costs across an entire run or 2. Temporarily while developing/debugging code.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(data_partition_t), | intent(in) | :: | self | |||
real(kind=real32), | intent(inout) | :: | a(:,:) | |||
integer, | intent(in), | optional | :: | result_image | ||
integer, | intent(in), | optional | :: | dim |
Gather the elements of an 2D array distributed along dimension dim onto result_image