mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
ebos: store the names wells that are disabled on the local process due to load balancing
This commit is contained in:
parent
5067ce2f27
commit
706e51f878
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user