mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #2226 from joakim-hove/mpi-fixup
Use Dune communicator instead of raw MPI call
This commit is contained in:
commit
2a0f8a0465
@ -293,13 +293,11 @@ protected:
|
||||
actnum_size = actnum.size();
|
||||
}
|
||||
|
||||
#ifdef HAVE_MPI
|
||||
MPI_Bcast(&actnum_size, 1, MPI_UNSIGNED_LONG, 0, MPI_COMM_WORLD);
|
||||
grid_->comm().broadcast(&actnum_size, 1, 0);
|
||||
if (mpiRank != 0)
|
||||
actnum.resize( actnum_size );
|
||||
|
||||
MPI_Bcast(actnum.data(), actnum_size, MPI_INT, 0, MPI_COMM_WORLD);
|
||||
#endif
|
||||
grid_->comm().broadcast(actnum.data(), actnum_size, 0);
|
||||
|
||||
auto & field_props = this->eclState().fieldProps();
|
||||
const_cast<FieldPropsManager&>(field_props).reset_actnum(actnum);
|
||||
|
Loading…
Reference in New Issue
Block a user