setting up mpi
Possible fix for midway ranges
Fix restrict for partial range wites