distribute nel
elements with weights weights
over nbin
bins.
load balanced distribution is obtained by using LPT algorithm together with randomization over equivalent bins
(i.e. randomization over all bins with the smallest accumulated weight)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | nel | |||
integer, | intent(in) | :: | nbin | |||
integer, | intent(in), | DIMENSION(nel) | :: | weights | ||
integer, | intent(out), | DIMENSION(nel) | :: | dist |