mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Well State: Add Predicate for Flow Rate Existence
This commit adds two new predicate member functions
bool hasWellRates(well_name) const
bool hasProductionGroupRates(group_name) const
that enable querying the existence of the corresponding flow rate
values for wells and group production.
This is in preparation of reporting the simulator's guiderate values
to the summary and restart files.
This commit is contained in:
@@ -379,6 +379,10 @@ namespace Opm
|
||||
return it->second;
|
||||
}
|
||||
|
||||
bool hasWellRates(const std::string& wellName) const {
|
||||
return this->well_rates.find(wellName) != this->well_rates.end();
|
||||
}
|
||||
|
||||
void setCurrentProductionGroupRates(const std::string& groupName, const std::vector<double>& rates ) {
|
||||
production_group_rates[groupName] = rates;
|
||||
}
|
||||
@@ -391,6 +395,10 @@ namespace Opm
|
||||
|
||||
return it->second;
|
||||
}
|
||||
|
||||
bool hasProductionGroupRates(const std::string& groupName) const {
|
||||
return this->production_group_rates.find(groupName) != this->production_group_rates.end();
|
||||
}
|
||||
|
||||
void setCurrentProductionGroupReductionRates(const std::string& groupName, const std::vector<double>& target ) {
|
||||
production_group_reduction_rates[groupName] = target;
|
||||
|
||||
Reference in New Issue
Block a user