From b415cd4fb8d628642417bfa8a85c318daa17f98a Mon Sep 17 00:00:00 2001 From: Kai Bao Date: Tue, 15 Jun 2021 00:00:43 +0200 Subject: [PATCH] not comparing guideRate_ with nullptr it is not a pointer anymore since OPM/opm-simulators#3380 --- opm/simulators/wells/BlackoilWellModelGeneric.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/opm/simulators/wells/BlackoilWellModelGeneric.cpp b/opm/simulators/wells/BlackoilWellModelGeneric.cpp index b249eba1d..18d80e0a9 100644 --- a/opm/simulators/wells/BlackoilWellModelGeneric.cpp +++ b/opm/simulators/wells/BlackoilWellModelGeneric.cpp @@ -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,