Fixed a MPI-related bug in relaxation.cpp.