Filter out wells from WellTestState

This commit is contained in:
Joakim Hove
2021-10-15 14:09:01 +02:00
parent 3b2d650f8d
commit 99ff9adca5
4 changed files with 17 additions and 1 deletions

View File

@@ -90,6 +90,14 @@ BOOST_AUTO_TEST_CASE(WTEST_STATE) {
st.close_well("WELLX", WellTestConfig::Reason::PHYSICAL, 100. * day);
BOOST_CHECK_EQUAL(st.num_closed_wells(), 2U);
{
auto st2 = st;
st2.filter_wells(std::vector<std::string>{"WELLX"});
BOOST_CHECK(!st2.well_is_closed("WELL_NAME")); // This well has been opened/removed by the filter_wells() call
BOOST_CHECK( st2.well_is_closed("WELLX"));
}
const UnitSystem us{};
WellTestConfig wc;