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=real64), | intent(inout) | :: | a(:) | |||
integer, | intent(in), | optional | :: | result_image | ||
integer, | intent(in), | optional | :: | dim |
Gather the elements of an 1D array distributed along dimension dim onto result_image