I don't know MPI, but looking at your code and having a nose around the documentation, I think your displacements are wrong. I think that the displacements are the number of bytes from the start of...