Added Well::Producercontrolmode

This commit is contained in:
Joakim Hove
2014-01-30 13:29:04 +01:00
parent d0da1275c4
commit e42234b17a
9 changed files with 168 additions and 12 deletions

View File

@@ -276,12 +276,15 @@ BOOST_AUTO_TEST_CASE(InjectorType) {
}
BOOST_AUTO_TEST_CASE(InjectorControlMode) {
BOOST_AUTO_TEST_CASE(ControlMode) {
Opm::TimeMapPtr timeMap = createXDaysTimeMap(10);
Opm::Well well("WELL1", 1, 2, 2334.32, timeMap, 0);
well.setInjectorControlMode( 1 , Opm::WellInjector::RESV );
BOOST_CHECK_EQUAL( Opm::WellInjector::RESV , well.getInjectorControlMode( 5 ));
well.setProducerControlMode( 1 , Opm::WellProducer::GRUP );
BOOST_CHECK_EQUAL( Opm::WellProducer::GRUP , well.getProducerControlMode( 5 ));
}