Consider the following scatter operation :
var A : [DomA] EltType;
var Indices : [DomA] IndexType;
var B : [DomB] EltType;
[(iSrc, iDst) in zip(DomA, Indices)] B[iDst] = A[iSrc];
where the domains are distributed. What is the best way to do this? In particular, is there an easy way to aggregate messages to avoid sending many small messages (assuming that sizeOf(EltType) is small)?