Remove Schedule::getWells(pattern)
This commit is contained in:
@@ -151,15 +151,15 @@ BOOST_AUTO_TEST_CASE(TestDynamicWTRACER) {
|
||||
const auto& keyword = deck.getKeyword("WTRACER");
|
||||
BOOST_CHECK_EQUAL(keyword.size(),1);
|
||||
const auto& record = keyword.getRecord(0);
|
||||
const std::string& wellNamesPattern = record.getItem("WELL").getTrimmedString(0);
|
||||
auto wells_Tracer = schedule.getWellsMatching(wellNamesPattern);
|
||||
BOOST_CHECK_EQUAL(wellNamesPattern, "W_1");
|
||||
BOOST_CHECK_EQUAL(wells_Tracer[0]->getTracerProperties(0).getConcentration("I1"),0); //default 0
|
||||
BOOST_CHECK_EQUAL(wells_Tracer[0]->getTracerProperties(0).getConcentration("I2"),0); //default 0
|
||||
BOOST_CHECK_EQUAL(wells_Tracer[0]->getTracerProperties(1).getConcentration("I1"),1);
|
||||
BOOST_CHECK_EQUAL(wells_Tracer[0]->getTracerProperties(2).getConcentration("I1"),1);
|
||||
BOOST_CHECK_EQUAL(wells_Tracer[0]->getTracerProperties(4).getConcentration("I1"),0);
|
||||
BOOST_CHECK_EQUAL(wells_Tracer[0]->getTracerProperties(4).getConcentration("I2"),1);
|
||||
const std::string& well_name = record.getItem("WELL").getTrimmedString(0);
|
||||
BOOST_CHECK_EQUAL(well_name, "W_1");
|
||||
const auto* well = schedule.getWell(well_name);
|
||||
BOOST_CHECK_EQUAL(well->getTracerProperties(0).getConcentration("I1"),0); //default 0
|
||||
BOOST_CHECK_EQUAL(well->getTracerProperties(0).getConcentration("I2"),0); //default 0
|
||||
BOOST_CHECK_EQUAL(well->getTracerProperties(1).getConcentration("I1"),1);
|
||||
BOOST_CHECK_EQUAL(well->getTracerProperties(2).getConcentration("I1"),1);
|
||||
BOOST_CHECK_EQUAL(well->getTracerProperties(4).getConcentration("I1"),0);
|
||||
BOOST_CHECK_EQUAL(well->getTracerProperties(4).getConcentration("I2"),1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user