Rename updateWells -> test_wells
This commit is contained in:
@@ -73,7 +73,7 @@ BOOST_AUTO_TEST_CASE(WTEST_STATE2) {
|
||||
BOOST_CHECK_EQUAL(st.num_closed_wells(), 1U);
|
||||
|
||||
const UnitSystem us{};
|
||||
auto shut_wells = st.updateWells(wc, 5000);
|
||||
auto shut_wells = st.test_wells(wc, 5000);
|
||||
BOOST_CHECK_EQUAL( shut_wells.size(), 1U);
|
||||
}
|
||||
|
||||
@@ -99,45 +99,45 @@ BOOST_AUTO_TEST_CASE(WTEST_STATE) {
|
||||
|
||||
WellTestConfig wc;
|
||||
{
|
||||
auto shut_wells = st.updateWells(wc, 110. * day);
|
||||
auto shut_wells = st.test_wells(wc, 110. * day);
|
||||
BOOST_CHECK_EQUAL(shut_wells.size(), 0U);
|
||||
}
|
||||
{
|
||||
auto shut_wells = st.updateWells(wc, 110. * day);
|
||||
auto shut_wells = st.test_wells(wc, 110. * day);
|
||||
BOOST_CHECK_EQUAL(shut_wells.size(), 0U);
|
||||
}
|
||||
|
||||
wc.add_well("WELL_NAME", "P", 1000. * day, 2, 0, 1);
|
||||
// Not sufficient time has passed.
|
||||
BOOST_CHECK_EQUAL( st.updateWells(wc, 200. * day).size(), 0U);
|
||||
BOOST_CHECK_EQUAL( st.test_wells(wc, 200. * day).size(), 0U);
|
||||
|
||||
// We should test it:
|
||||
BOOST_CHECK_EQUAL( st.updateWells(wc, 1200. * day).size(), 1U);
|
||||
BOOST_CHECK_EQUAL( st.test_wells(wc, 1200. * day).size(), 1U);
|
||||
|
||||
// Not sufficient time has passed.
|
||||
BOOST_CHECK_EQUAL( st.updateWells(wc, 1700. * day).size(), 0U);
|
||||
BOOST_CHECK_EQUAL( st.test_wells(wc, 1700. * day).size(), 0U);
|
||||
|
||||
st.open_well("WELL_NAME", WellTestConfig::Reason::PHYSICAL);
|
||||
|
||||
st.close_well("WELL_NAME", WellTestConfig::Reason::PHYSICAL, 1900. * day);
|
||||
|
||||
// We should not test it:
|
||||
BOOST_CHECK_EQUAL( st.updateWells(wc, 2400. * day).size(), 0U);
|
||||
BOOST_CHECK_EQUAL( st.test_wells(wc, 2400. * day).size(), 0U);
|
||||
|
||||
// We should test it now:
|
||||
BOOST_CHECK_EQUAL( st.updateWells(wc, 3000. * day).size(), 1U);
|
||||
BOOST_CHECK_EQUAL( st.test_wells(wc, 3000. * day).size(), 1U);
|
||||
|
||||
// Too many attempts:
|
||||
BOOST_CHECK_EQUAL( st.updateWells(wc, 4000. * day).size(), 0U);
|
||||
BOOST_CHECK_EQUAL( st.test_wells(wc, 4000. * day).size(), 0U);
|
||||
|
||||
wc.add_well("WELL_NAME", "P", 1000. * day, 3, 0, 5);
|
||||
|
||||
|
||||
BOOST_CHECK_EQUAL( st.updateWells(wc, 4100. * day).size(), 1U);
|
||||
BOOST_CHECK_EQUAL( st.updateWells(wc, 5200. * day).size(), 1U);
|
||||
BOOST_CHECK_EQUAL( st.test_wells(wc, 4100. * day).size(), 1U);
|
||||
BOOST_CHECK_EQUAL( st.test_wells(wc, 5200. * day).size(), 1U);
|
||||
|
||||
wc.drop_well("WELL_NAME");
|
||||
BOOST_CHECK_EQUAL( st.updateWells(wc, 6300. * day).size(), 0U);
|
||||
BOOST_CHECK_EQUAL( st.test_wells(wc, 6300. * day).size(), 0U);
|
||||
}
|
||||
|
||||
|
||||
@@ -157,7 +157,7 @@ BOOST_AUTO_TEST_CASE(WTEST_STATE_COMPLETIONS) {
|
||||
BOOST_CHECK_EQUAL(st.num_closed_completions(), 3U);
|
||||
|
||||
const UnitSystem us{};
|
||||
auto num_closed_completions = st.updateWells(wc, 5000);
|
||||
auto num_closed_completions = st.test_wells(wc, 5000);
|
||||
BOOST_CHECK_EQUAL( num_closed_completions.size(), 0U);
|
||||
|
||||
BOOST_CHECK_NO_THROW( st.open_completion("WELL_NAME", 20000));
|
||||
|
||||
Reference in New Issue
Block a user