Fixed a BUG where the rank would overspill because the local size of the last process may be larger then the 'localsize'
Fixed a BUG where the rank would overspill because the local size of the last process may be larger then the 'localsize'

madsbk/bohrium,bh107/bohrium,bh107/bohrium,bh107/bohrium,madsbk/bohrium,madsbk/bohrium,bh107/bohrium,madsbk/bohrium