replaced an ifdef HAVE_MPI with if HAVE_MPI