Merge pull request #3382 from GitPaean/fixing_compilation

not comparing guideRate_ with nullptr
This commit is contained in:
Joakim Hove 2021-06-15 07:46:00 +02:00 committed by GitHub
commit 2a990f7465
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1139,8 +1139,6 @@ getGuideRateValues(const Well& well) const
{
auto grval = data::GuideRateValue{};
assert (this->guideRate_ != nullptr);
const auto& wname = well.name();
if (!this->wellState().hasWellRates(wname)) {
// No flow rates for 'wname' -- might be before well comes
@ -1221,8 +1219,6 @@ getGuideRateInjectionGroupValues(const Group& group) const
{
auto grval = data::GuideRateValue{};
assert (this->guideRate_ != nullptr);
const auto& gname = group.name();
if (this->guideRate_.has(gname, Phase::GAS)) {
grval.set(data::GuideRateValue::Item::Gas,