mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Added checks for BHP and fluid_volume_rate for group control. Also added error tolerance for group control
This commit is contained in:
@@ -88,9 +88,10 @@ namespace Opm
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bool WellCollection::conditionsMet(const std::vector<double>& well_bhp, const std::vector<double>& well_rate) const {
|
||||
bool WellCollection::conditionsMet(const std::vector<double>& well_bhp, const std::vector<double>& well_rate,
|
||||
const UnstructuredGrid& grid, const std::vector<double>& saturations, double epsilon) const {
|
||||
for(size_t i = 0; i < leaf_nodes_.size(); i++) {
|
||||
if(! static_cast<WellNode*>(leaf_nodes_[i].get())->conditionsMet(well_bhp, well_rate) ) {
|
||||
if(! static_cast<WellNode*>(leaf_nodes_[i].get())->conditionsMet(well_bhp, well_rate, grid, saturations, epsilon) ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user