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:
@@ -293,13 +293,11 @@ protected:
|
|||||||
actnum_size = actnum.size();
|
actnum_size = actnum.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_MPI
|
grid_->comm().broadcast(&actnum_size, 1, 0);
|
||||||
MPI_Bcast(&actnum_size, 1, MPI_UNSIGNED_LONG, 0, MPI_COMM_WORLD);
|
|
||||||
if (mpiRank != 0)
|
if (mpiRank != 0)
|
||||||
actnum.resize( actnum_size );
|
actnum.resize( actnum_size );
|
||||||
|
|
||||||
MPI_Bcast(actnum.data(), actnum_size, MPI_INT, 0, MPI_COMM_WORLD);
|
grid_->comm().broadcast(actnum.data(), actnum_size, 0);
|
||||||
#endif
|
|
||||||
|
|
||||||
auto & field_props = this->eclState().fieldProps();
|
auto & field_props = this->eclState().fieldProps();
|
||||||
const_cast<FieldPropsManager&>(field_props).reset_actnum(actnum);
|
const_cast<FieldPropsManager&>(field_props).reset_actnum(actnum);
|
||||||
|
|||||||
Reference in New Issue
Block a user