mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Add method WellContainer::well_index()
This commit is contained in:
@@ -516,6 +516,13 @@ BOOST_AUTO_TEST_CASE(TESTWellContainer) {
|
||||
BOOST_CHECK(wci.has("W1"));
|
||||
BOOST_CHECK_EQUAL(wci[1], 2);
|
||||
BOOST_CHECK_EQUAL(wci["W3"], 3);
|
||||
|
||||
auto w3 = wci.well_index("W3");
|
||||
BOOST_CHECK(w3.has_value());
|
||||
BOOST_CHECK_EQUAL(w3.value(), 2);
|
||||
|
||||
auto wx = wci.well_index("WX");
|
||||
BOOST_CHECK(!wx.has_value());
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user