Update MPI_CalculateXYandGradient.cpp