Refactor Well Guide Rate Summary Assignment

In anticipation of adding more steps later.
This commit is contained in:
Bård Skaflestad
2020-10-20 00:10:27 +02:00
parent c800c5376d
commit 4e9e60a71b
2 changed files with 25 additions and 10 deletions

View File

@@ -2591,6 +2591,29 @@ namespace Opm {
}
}
template<typename TypeTag>
void
BlackoilWellModel<TypeTag>::
assignWellGuideRates(data::Wells& wsrpt) const
{
for (const auto& well : this->wells_ecl_) {
auto xwPos = wsrpt.find(well.name());
if (xwPos == wsrpt.end()) { // No well results. Unexpected.
continue;
}
xwPos->second.guide_rates = this->getGuideRateValues(well);
}
}
template <typename TypeTag>
void
BlackoilWellModel<TypeTag>::