From ac6a8f91d693db15c0610da11f97d2e27b85c043 Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Thu, 7 Oct 2021 15:29:33 +0200 Subject: [PATCH] WellTestState::openWell -> WellTestState::open_well --- .../eclipse/EclipseState/Schedule/Well/WellTestState.hpp | 4 ++-- .../eclipse/EclipseState/Schedule/Well/WellTestState.cpp | 4 ++-- tests/parser/WTEST.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/opm/parser/eclipse/EclipseState/Schedule/Well/WellTestState.hpp b/opm/parser/eclipse/EclipseState/Schedule/Well/WellTestState.hpp index d55570861..294298d74 100644 --- a/opm/parser/eclipse/EclipseState/Schedule/Well/WellTestState.hpp +++ b/opm/parser/eclipse/EclipseState/Schedule/Well/WellTestState.hpp @@ -172,11 +172,11 @@ public: * no matter what is the closing cause */ bool well_is_closed(const std::string& well_name) const; - void openWell(const std::string& well_name, WellTestConfig::Reason reason); + void open_well(const std::string& well_name, WellTestConfig::Reason reason); /* open the well no matter what is the closing cause. * it is used when WELOPEN or WCON* keyword request to open the well */ - void openWell(const std::string& well_name); + void open_well(const std::string& well_name); void open_completions(const std::string& well_name); diff --git a/src/opm/parser/eclipse/EclipseState/Schedule/Well/WellTestState.cpp b/src/opm/parser/eclipse/EclipseState/Schedule/Well/WellTestState.cpp index e493bdbc2..d56b6c953 100644 --- a/src/opm/parser/eclipse/EclipseState/Schedule/Well/WellTestState.cpp +++ b/src/opm/parser/eclipse/EclipseState/Schedule/Well/WellTestState.cpp @@ -47,7 +47,7 @@ namespace Opm { } - void WellTestState::openWell(const std::string& well_name, WellTestConfig::Reason reason) { + void WellTestState::open_well(const std::string& well_name, WellTestConfig::Reason reason) { WTestWell* well_ptr = getWell(well_name, reason); @@ -60,7 +60,7 @@ namespace Opm { } - void WellTestState::openWell(const std::string& well_name) { + void WellTestState::open_well(const std::string& well_name) { for (auto& well : wells) if (well.name == well_name) well.closed = false; diff --git a/tests/parser/WTEST.cpp b/tests/parser/WTEST.cpp index fb0beb7ca..b5c49802f 100644 --- a/tests/parser/WTEST.cpp +++ b/tests/parser/WTEST.cpp @@ -94,7 +94,7 @@ BOOST_AUTO_TEST_CASE(WTEST_STATE) { st.close_well("WELL_NAME", WellTestConfig::Reason::ECONOMIC, 100. * day); BOOST_CHECK_EQUAL(st.num_closed_wells(), 1U); - st.openWell("WELL_NAME", WellTestConfig::Reason::ECONOMIC); + st.open_well("WELL_NAME", WellTestConfig::Reason::ECONOMIC); BOOST_CHECK_EQUAL(st.num_closed_wells(), 0); st.close_well("WELL_NAME", WellTestConfig::Reason::ECONOMIC, 100. * day); @@ -133,7 +133,7 @@ BOOST_AUTO_TEST_CASE(WTEST_STATE) { // Not sufficient time has passed. BOOST_CHECK_EQUAL( st.updateWells(wc, wells, 1700. * day).size(), 0U); - st.openWell("WELL_NAME", WellTestConfig::Reason::PHYSICAL); + st.open_well("WELL_NAME", WellTestConfig::Reason::PHYSICAL); st.close_well("WELL_NAME", WellTestConfig::Reason::PHYSICAL, 1900. * day);