Added a MPI_MAX reduction to handle finding the max error across all MPI processes.