adding flag to tell when using well potential for guide rate

for WellNode.
This commit is contained in:
Kai Bao
2017-04-07 10:59:46 +02:00
parent e0d48a366b
commit 926f93fa4e
7 changed files with 41 additions and 4 deletions

View File

@@ -921,7 +921,8 @@ namespace Opm
self_index_(-1),
group_control_index_(-1),
shut_well_(true), // This is default for now
target_updated_(false) // This is default for now, not sure whether to use the default value
target_updated_(false), // This is default for now, not sure whether to use the default value
is_guiderate_wellpotential_(false)
{
}
@@ -1651,6 +1652,18 @@ namespace Opm
}
bool WellNode::isGuideRateWellPotential() const
{
return is_guiderate_wellpotential_;
}
void WellNode::setIsGuideRateWellPotential(const bool flag)
{
is_guiderate_wellpotential_ = flag;
}
bool WellNode::canProduceMore() const
{
return (isProducer() && !individualControl());