mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-06 14:33:02 -06:00
avoid dereferencing eclGrid and FieldProps on non-root processes setting up grids
these only used on root process in any case
This commit is contained in:
parent
e2862a3a4d
commit
d91155738f
@ -258,13 +258,14 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
void createGrids_()
|
void createGrids_()
|
||||||
{
|
{
|
||||||
const auto& porv = this->eclState().fieldProps().porv(true);
|
|
||||||
grid_.reset(new Dune::CpGrid());
|
grid_.reset(new Dune::CpGrid());
|
||||||
grid_->processEclipseFormat(&(this->eclState().getInputGrid()),
|
grid_->processEclipseFormat(mpiRank == 0 ? &this->eclState().getInputGrid()
|
||||||
|
: nullptr,
|
||||||
/*isPeriodic=*/false,
|
/*isPeriodic=*/false,
|
||||||
/*flipNormals=*/false,
|
/*flipNormals=*/false,
|
||||||
/*clipZ=*/false,
|
/*clipZ=*/false,
|
||||||
porv,
|
mpiRank == 0 ? this->eclState().fieldProps().porv(true)
|
||||||
|
: std::vector<double>(),
|
||||||
this->eclState().getInputNNC());
|
this->eclState().getInputNNC());
|
||||||
|
|
||||||
// we use separate grid objects: one for the calculation of the initial condition
|
// we use separate grid objects: one for the calculation of the initial condition
|
||||||
|
Loading…
Reference in New Issue
Block a user