Add time range to WellStatus

This commit is contained in:
Joakim Hove
2020-12-08 09:20:44 +01:00
parent 2e832f0fbe
commit cf244a293e
7 changed files with 158 additions and 100 deletions

View File

@@ -3233,8 +3233,8 @@ BOOST_AUTO_TEST_CASE(WELL_STATIC) {
BOOST_CHECK(ws.updateRefDepth(1.0));
BOOST_CHECK(!ws.updateRefDepth(1.0));
ws.updateStatus(Well::Status::OPEN, false, false);
ws.updateStatus(Well::Status::SHUT, false, false);
ws.updateStatus(Well::Status::OPEN, 0, false);
ws.updateStatus(Well::Status::SHUT, 0, false);
const auto& connections = ws.getConnections();
BOOST_CHECK_EQUAL(connections.size(), 0U);
@@ -3250,8 +3250,8 @@ BOOST_AUTO_TEST_CASE(WELL_STATIC) {
10,
100);
BOOST_CHECK( ws.updateConnections(c2) );
BOOST_CHECK( !ws.updateConnections(c2) );
BOOST_CHECK( ws.updateConnections(c2, 0, false) );
BOOST_CHECK( !ws.updateConnections(c2, 0, false) );
}

View File

@@ -1343,7 +1343,7 @@ END
"P and Q must have the same internal connections pointers");
auto connQ = std::make_shared<WellConnections>(wellP.getConnections());
wellQ.updateConnections(std::move(connQ), true);
wellQ.updateConnections(std::move(connQ), 0, true, true);
BOOST_CHECK_MESSAGE(! wellP.hasSameConnectionsPointers(wellQ),
"P and Q must NOT have the same internal connections pointers "
"after forcibly updating the connections structure");