Removing if block in MPI ifdef.

This commit is contained in:
Patrick Shriwise 2019-10-15 00:43:21 -05:00
parent dc5fe42af3
commit 67907e53d9

View file

@ -325,11 +325,7 @@ std::vector<VolumeCalculation::Result> VolumeCalculation::execute() const
#ifdef OPENMC_MPI
// update maximum error value on all processes
if (mpi::master) {
MPI_Bcast(&trigger_val, 1, MPI_DOUBLE, 0, mpi::intracomm);
} else {
MPI_Recv(&trigger_val, 1, MPI_DOUBLE, 0, 0, mpi::intracomm, MPI_STATUS_IGNORE);
}
MPI_Bcast(&trigger_val, 1, MPI_DOUBLE, 0, mpi::intracomm);
#endif
// return results of the calculation