distribute_lpt_random Subroutine

private subroutine distribute_lpt_random(nel, nbin, weights, dist)

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)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: nel
integer, intent(in) :: nbin
integer, intent(in), DIMENSION(nel) :: weights
integer, intent(out), DIMENSION(nel) :: dist