From 93e59e73ac565069cedd87928ffc2ba79b76802e Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Thu, 12 Jan 2023 12:20:09 +0100 Subject: [PATCH] use Well::hasConnections --- opm/simulators/wells/BlackoilWellModel_impl.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opm/simulators/wells/BlackoilWellModel_impl.hpp b/opm/simulators/wells/BlackoilWellModel_impl.hpp index 53e7412f4..5b01a8a67 100644 --- a/opm/simulators/wells/BlackoilWellModel_impl.hpp +++ b/opm/simulators/wells/BlackoilWellModel_impl.hpp @@ -630,7 +630,7 @@ namespace Opm { for (int w = 0; w < nw; ++w) { const Well& well_ecl = wells_ecl_[w]; - if (well_ecl.getConnections().empty()) { + if (!well_ecl.hasConnections()) { // No connections in this well. Nothing to do. continue; } @@ -1642,7 +1642,7 @@ namespace Opm { // corresponding "this->wells_ecl_[shutWell]". for (const auto& shutWell : this->local_shut_wells_) { - if (this->wells_ecl_[shutWell].getConnections().empty()) { + if (!this->wells_ecl_[shutWell].hasConnections()) { // No connections in this well. Nothing to do. continue; }