mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-04 13:36:57 -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:
|
||||
void createGrids_()
|
||||
{
|
||||
const auto& porv = this->eclState().fieldProps().porv(true);
|
||||
grid_.reset(new Dune::CpGrid());
|
||||
grid_->processEclipseFormat(&(this->eclState().getInputGrid()),
|
||||
grid_->processEclipseFormat(mpiRank == 0 ? &this->eclState().getInputGrid()
|
||||
: nullptr,
|
||||
/*isPeriodic=*/false,
|
||||
/*flipNormals=*/false,
|
||||
/*clipZ=*/false,
|
||||
porv,
|
||||
mpiRank == 0 ? this->eclState().fieldProps().porv(true)
|
||||
: std::vector<double>(),
|
||||
this->eclState().getInputNNC());
|
||||
|
||||
// we use separate grid objects: one for the calculation of the initial condition
|
||||
|
Loading…
Reference in New Issue
Block a user