Fix shut well logic when WELOPEN and COMPDAT is combined

Do not shut well if all completions are shut using WELOPEN but new
completions are opened using COMPDAT in the same time step.
This commit is contained in:
Tor Harald Sandve
2017-09-26 09:32:29 +02:00
parent 66841bdb14
commit eb4f0b68d6
4 changed files with 84 additions and 7 deletions

View File

@@ -910,7 +910,7 @@ BOOST_AUTO_TEST_CASE(TestWellEvents) {
BOOST_CHECK( w1->hasEvent( ScheduleEvents::WELL_STATUS_CHANGE , 1 ));
BOOST_CHECK( w1->hasEvent( ScheduleEvents::WELL_STATUS_CHANGE , 3 ));
BOOST_CHECK( w1->hasEvent( ScheduleEvents::WELL_STATUS_CHANGE , 4 ));
BOOST_CHECK( w1->hasEvent( ScheduleEvents::WELL_STATUS_CHANGE , 5 ));
BOOST_CHECK( !w1->hasEvent( ScheduleEvents::WELL_STATUS_CHANGE , 5 ));
BOOST_CHECK( w1->hasEvent( ScheduleEvents::COMPLETION_CHANGE , 0 ));
BOOST_CHECK( w1->hasEvent( ScheduleEvents::COMPLETION_CHANGE , 5 ));