adding a non-const wellCollection() in WellsManager.

For the WellModel from the simulator to use. Not decided totally,
    well_collection might need to be updated during the simualtion due
    to the update the target of wells.
This commit is contained in:
Kai Bao 2016-09-30 12:59:10 +02:00
parent 36bedfcf67
commit 4214cfec83
2 changed files with 7 additions and 0 deletions

View File

@ -373,6 +373,12 @@ namespace Opm
return well_collection_;
}
WellCollection& WellsManager::wellCollection() {
return well_collection_;
}
bool WellsManager::conditionsMet(const std::vector<double>& well_bhp,
const std::vector<double>& well_reservoirrates_phase,
const std::vector<double>& well_surfacerates_phase)

View File

@ -114,6 +114,7 @@ namespace Opm
/// Access the well group hierarchy.
const WellCollection& wellCollection() const;
WellCollection& wellCollection();
/// Checks if each condition is met, applies well controls where needed
/// (that is, it either changes the active control of violating wells, or shuts