fix build without MPI

This commit is contained in:
Arne Morten Kvarving
2020-02-28 12:53:16 +01:00
parent 36761e9347
commit 293612265e
4 changed files with 11 additions and 3 deletions

View File

@@ -208,6 +208,7 @@ public:
cartesianIndexMapper_.reset(new CartesianIndexMapper(*grid_));
this->updateGridView_();
#if HAVE_MPI
if (mpiSize > 1) {
std::vector<int> cartIndices;
cartIndices.reserve(grid_->numCells());
@@ -219,6 +220,7 @@ public:
static_cast<ParallelEclipseState&>(this->eclState()).setupLocalProps(cartIndices);
static_cast<ParallelEclipseState&>(this->eclState()).switchToDistributedProps();
}
#endif
}
/*!