removing funciton dropWell for WellTestState
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user