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

This commit is contained in:
Andreas Lauser committed 2016-12-07 20:24:48 +01:00
1 parent 5067ce2f27
commit 706e51f878
1 file changed
+6 -1
+6 -1
View File
@@ -182,7 +182,7 @@ public:
}
//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();
delete cartesianIndexMapper_;
@@ -206,6 +206,9 @@ public:
const CartesianIndexMapper& equilCartesianIndexMapper() const
{ return *equilCartesianIndexMapper_; }
std::unordered_set<std::string> defunctWellNames() const
{ return defunctWellNames_; }
protected:
void createGrids_()
{
@@ -236,6 +239,8 @@ protected:
EquilGrid* equilGrid_;
CartesianIndexMapper* cartesianIndexMapper_;
CartesianIndexMapper* equilCartesianIndexMapper_;
std::unordered_set<std::string> defunctWellNames_;
};
} // namespace Ewoms