ebos: store the names wells that are disabled on the local process due to load balancing

This commit is contained in:
Andreas Lauser 2016-12-06 19:49:06 +01:00
parent 5067ce2f27
commit 706e51f878

View File

@ -182,7 +182,7 @@ public:
} }
//distribute the grid and switch to the distributed view. //distribute the grid and switch to the distributed view.
grid_->loadBalance(&this->eclState(), faceTrans.data()); defunctWellNames_ = std::get<1>(grid_->loadBalance(&this->eclState(), faceTrans.data()));
grid_->switchToDistributedView(); grid_->switchToDistributedView();
delete cartesianIndexMapper_; delete cartesianIndexMapper_;
@ -206,6 +206,9 @@ public:
const CartesianIndexMapper& equilCartesianIndexMapper() const const CartesianIndexMapper& equilCartesianIndexMapper() const
{ return *equilCartesianIndexMapper_; } { return *equilCartesianIndexMapper_; }
std::unordered_set<std::string> defunctWellNames() const
{ return defunctWellNames_; }
protected: protected:
void createGrids_() void createGrids_()
{ {
@ -236,6 +239,8 @@ protected:
EquilGrid* equilGrid_; EquilGrid* equilGrid_;
CartesianIndexMapper* cartesianIndexMapper_; CartesianIndexMapper* cartesianIndexMapper_;
CartesianIndexMapper* equilCartesianIndexMapper_; CartesianIndexMapper* equilCartesianIndexMapper_;
std::unordered_set<std::string> defunctWellNames_;
}; };
} // namespace Ewoms } // namespace Ewoms