From 52b2c096a26e32509560e113822624de4e8a3ddb Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Thu, 7 Oct 2021 15:13:55 +0200 Subject: [PATCH] WellTestState::closeWell -> WellTestState::close_well --- opm/simulators/wells/BlackoilWellModelGeneric.cpp | 2 +- opm/simulators/wells/WellInterfaceFluidSystem.cpp | 6 +++--- opm/simulators/wells/WellInterfaceGeneric.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/opm/simulators/wells/BlackoilWellModelGeneric.cpp b/opm/simulators/wells/BlackoilWellModelGeneric.cpp index 691921d15..b632592ee 100644 --- a/opm/simulators/wells/BlackoilWellModelGeneric.cpp +++ b/opm/simulators/wells/BlackoilWellModelGeneric.cpp @@ -1592,7 +1592,7 @@ forceShutWellByNameIfPredictionMode(const std::string& wellname, for (const auto& well : well_container_generic_) { if (well->name() == wellname && !well->wellIsStopped()) { if (well->underPredictionMode()) { - wellTestState().closeWell(wellname, WellTestConfig::Reason::PHYSICAL, simulation_time); + wellTestState().close_well(wellname, WellTestConfig::Reason::PHYSICAL, simulation_time); well_was_shut = 1; } break; diff --git a/opm/simulators/wells/WellInterfaceFluidSystem.cpp b/opm/simulators/wells/WellInterfaceFluidSystem.cpp index 99ce44866..e41858e97 100644 --- a/opm/simulators/wells/WellInterfaceFluidSystem.cpp +++ b/opm/simulators/wells/WellInterfaceFluidSystem.cpp @@ -708,7 +708,7 @@ updateWellTestStateEconomic(const SingleWellState& ws, deferred_logger.warning("NOT_SUPPORTING_FOLLOWONWELL", "opening following on well after well closed is not supported yet"); } - well_test_state.closeWell(name(), WellTestConfig::Reason::ECONOMIC, simulation_time); + well_test_state.close_well(name(), WellTestConfig::Reason::ECONOMIC, simulation_time); if (write_message_to_opmlog) { if (this->well_ecl_.getAutomaticShutIn()) { const std::string msg = std::string("well ") + name() + std::string(" will be shut due to rate economic limit"); @@ -763,7 +763,7 @@ updateWellTestStateEconomic(const SingleWellState& ws, } if (allCompletionsClosed) { - well_test_state.closeWell(name(), WellTestConfig::Reason::ECONOMIC, simulation_time); + well_test_state.close_well(name(), WellTestConfig::Reason::ECONOMIC, simulation_time); if (write_message_to_opmlog) { if (this->well_ecl_.getAutomaticShutIn()) { const std::string msg = name() + std::string(" will be shut due to last completion closed"); @@ -778,7 +778,7 @@ updateWellTestStateEconomic(const SingleWellState& ws, } case WellEconProductionLimits::EconWorkover::WELL: { - well_test_state.closeWell(name(), WellTestConfig::Reason::ECONOMIC, simulation_time); + well_test_state.close_well(name(), WellTestConfig::Reason::ECONOMIC, simulation_time); if (write_message_to_opmlog) { if (well_ecl_.getAutomaticShutIn()) { // tell the control that the well is closed diff --git a/opm/simulators/wells/WellInterfaceGeneric.cpp b/opm/simulators/wells/WellInterfaceGeneric.cpp index 717f14ba5..91e79db8f 100644 --- a/opm/simulators/wells/WellInterfaceGeneric.cpp +++ b/opm/simulators/wells/WellInterfaceGeneric.cpp @@ -356,7 +356,7 @@ void WellInterfaceGeneric::updateWellTestStatePhysical(const double simulation_t if (well_test_state.hasWellClosed(name())) { // Already closed, do nothing. } else { - well_test_state.closeWell(name(), WellTestConfig::Reason::PHYSICAL, simulation_time); + well_test_state.close_well(name(), WellTestConfig::Reason::PHYSICAL, simulation_time); if (write_message_to_opmlog) { const std::string action = well_ecl_.getAutomaticShutIn() ? "shut" : "stopped"; const std::string msg = "Well " + name()