not comparing guideRate_ with nullptr

it is not a pointer anymore since OPM/opm-simulators#3380
This commit is contained in:
Kai Bao 2021-06-15 00:00:43 +02:00
parent 0cf158cd15
commit b415cd4fb8

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,