From feaaebf3fce4f0b152a48cff608912242fabcf15 Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Thu, 7 Oct 2021 15:10:00 +0200 Subject: [PATCH] WellTestState::hasCompletion -> WellTestState::completion_is_closed --- opm/simulators/wells/WellInterfaceFluidSystem.cpp | 2 +- opm/simulators/wells/WellInterfaceGeneric.cpp | 2 +- opm/simulators/wells/WellInterface_impl.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/opm/simulators/wells/WellInterfaceFluidSystem.cpp b/opm/simulators/wells/WellInterfaceFluidSystem.cpp index 506cd456b..99ce44866 100644 --- a/opm/simulators/wells/WellInterfaceFluidSystem.cpp +++ b/opm/simulators/wells/WellInterfaceFluidSystem.cpp @@ -757,7 +757,7 @@ updateWellTestStateEconomic(const SingleWellState& ws, const auto& connections = well_ecl_.getConnections(); for (const auto& connection : connections) { if (connection.state() == Connection::State::OPEN - && !well_test_state.hasCompletion(name(), connection.complnum())) { + && !well_test_state.completion_is_closed(name(), connection.complnum())) { allCompletionsClosed = false; } } diff --git a/opm/simulators/wells/WellInterfaceGeneric.cpp b/opm/simulators/wells/WellInterfaceGeneric.cpp index 2e426696b..717f14ba5 100644 --- a/opm/simulators/wells/WellInterfaceGeneric.cpp +++ b/opm/simulators/wells/WellInterfaceGeneric.cpp @@ -233,7 +233,7 @@ void WellInterfaceGeneric::closeCompletions(WellTestState& wellTestState) int perfIdx = 0; for (const auto& connection : connections) { if (connection.state() == Connection::State::OPEN) { - if (wellTestState.hasCompletion(name(), connection.complnum())) { + if (wellTestState.completion_is_closed(name(), connection.complnum())) { well_index_[perfIdx] = 0.0; } perfIdx++; diff --git a/opm/simulators/wells/WellInterface_impl.hpp b/opm/simulators/wells/WellInterface_impl.hpp index 1860479fb..4bd416048 100644 --- a/opm/simulators/wells/WellInterface_impl.hpp +++ b/opm/simulators/wells/WellInterface_impl.hpp @@ -306,7 +306,7 @@ namespace Opm // also reopen completions for (auto& completion : this->well_ecl_.getCompletions()) { - if (!welltest_state_temp.hasCompletion(this->name(), completion.first)) { + if (!welltest_state_temp.completion_is_closed(this->name(), completion.first)) { well_test_state.dropCompletion(this->name(), completion.first); } }