mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
adding target_updated_ flag to WellNode
to save some repeated efforts when updating Well Targets.
This commit is contained in:
@@ -792,6 +792,7 @@ namespace Opm
|
||||
if (!children_[i]->individualControl() && children_[i]->isProducer()) {
|
||||
const double children_guide_rate = children_[i]->productionGuideRate(true);
|
||||
children_[i]->applyProdGroupControl(prod_mode, (children_guide_rate / my_guide_rate) * rate_for_group_control, true);
|
||||
children_[i]->setTargetUpdated(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -802,6 +803,11 @@ namespace Opm
|
||||
// Will finish it when having an examples with more than one injection wells within same injection group.
|
||||
}
|
||||
|
||||
void WellsGroup::setTargetUpdated(const bool /* flag */)
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
|
||||
|
||||
bool WellsGroup::isProducer() const
|
||||
{
|
||||
@@ -833,7 +839,8 @@ namespace Opm
|
||||
wells_(0),
|
||||
self_index_(-1),
|
||||
group_control_index_(-1),
|
||||
shut_well_(true) // This is default for now
|
||||
shut_well_(true), // This is default for now
|
||||
target_updated_(false) // This is default for now, not sure whether to use the default value
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1510,4 +1517,14 @@ namespace Opm
|
||||
return self_index_;
|
||||
}
|
||||
|
||||
|
||||
bool WellNode::targetUpdated() const {
|
||||
return target_updated_;
|
||||
}
|
||||
|
||||
|
||||
void WellNode::setTargetUpdated(const bool flag) {
|
||||
target_updated_ = flag;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user