removing funciton dropWell for WellTestState

This commit is contained in:
Kai Bao
2019-06-25 22:12:30 +02:00
parent c0c9d70dcf
commit 28110584a3
3 changed files with 0 additions and 20 deletions

View File

@@ -86,14 +86,6 @@ public:
*/
std::vector<std::pair<std::string, int>> updateCompletion(const WellTestConfig& config, double sim_time);
/*
If the simulator decides that a constraint is no longer met the dropWell()
method should be called to indicate that this reason for keeping the well
closed is no longer active.
*/
void dropWell(const std::string& well_name, WellTestConfig::Reason reason);
/*
If the simulator decides that a constraint is no longer met the dropCompletion()
method should be called to indicate that this reason for keeping the well

View File

@@ -52,14 +52,6 @@ namespace Opm {
}
void WellTestState::dropWell(const std::string& well_name, WellTestConfig::Reason reason) {
wells.erase(std::remove_if(wells.begin(),
wells.end(),
[&well_name, reason](const WTestWell& well) { return (well.name == well_name && well.reason == reason); }),
wells.end());
}
bool WellTestState::hasWellClosed(const std::string& well_name, WellTestConfig::Reason reason) const {
const auto well_iter = std::find_if(wells.begin(),
wells.end(),

View File

@@ -123,10 +123,6 @@ BOOST_AUTO_TEST_CASE(WTEST_STATE) {
// Too many attempts:
BOOST_CHECK_EQUAL( st.updateWell(wc, 24000. * day).size(), 0);
st.dropWell("WELL_NAME", WellTestConfig::Reason::ECONOMIC);
BOOST_CHECK_EQUAL(st.sizeWells(), 2);
}