mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Removing if block in MPI ifdef.
This commit is contained in:
parent
dc5fe42af3
commit
67907e53d9
1 changed files with 1 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue