Use keywords arguments in getweights
Remi Lehe
Branch: berkeleylab/atap-warp:correct_getweights
Branch: berkeleylab/warp:master
Merged
Merged pull request
Merged in berkeleylab/atap-warp/correct_getweights (pull request #149)
getweights
Merged in berkeleylab/atap-warp/correct_getweights (pull request #149)
The keywords arguments in
getweights
were not used in the case weretop.wpid == 0
(i.e. when macroparticles have uniform weights).This can result in a major error when e.g.
gather=0
is passed togetweights
: since this is not used inside the function, the function will return the gathered weights (across all procs) instead.