correction of maximum grid size equal cpu number power of two

this make it crashless with really tiny particles.