Merge pull request #593 from GitPaean/fixing_history_mode_part_2
fixing the BHP limit for the history matching wells
This commit is contained in:
@@ -1384,7 +1384,7 @@ BOOST_AUTO_TEST_CASE(changeBhpLimitInHistoryModeWithWeltarg) {
|
||||
"/\n"
|
||||
"WCONHIST\n"
|
||||
" 'I' 'OPEN' 'RESV' 6* /\n/\n"
|
||||
"DATES -- 3\n"
|
||||
"DATES -- 4\n"
|
||||
" 20 OKT 2008 / \n"
|
||||
"/\n"
|
||||
"WCONINJH\n"
|
||||
@@ -1412,12 +1412,16 @@ BOOST_AUTO_TEST_CASE(changeBhpLimitInHistoryModeWithWeltarg) {
|
||||
BOOST_CHECK_EQUAL(well_i->getInjectionProperties(2).BHPLimit, 600 * 1e5); // 2
|
||||
|
||||
// Check that the BHP limit is reset when changing between injector and producer.
|
||||
// well_i is a producer for this report step
|
||||
BOOST_CHECK_EQUAL(well_i->getInjectionProperties(3).BHPLimit, 0); // 3
|
||||
BOOST_CHECK_EQUAL(well_i->getInjectionProperties(4).BHPLimit, 0); // 4
|
||||
// well_i changes from producer to injector
|
||||
BOOST_CHECK_EQUAL(well_i->getInjectionProperties(4).BHPLimit, 6891.2 * 1e5); // 4
|
||||
|
||||
BOOST_CHECK_EQUAL( true , well_i->getInjectionProperties(2).hasInjectionControl(Opm::WellInjector::BHP) );
|
||||
BOOST_CHECK_EQUAL( true , well_i->getInjectionProperties(2).hasInjectionControl(Opm::WellInjector::BHP) );
|
||||
// it is a producer
|
||||
BOOST_CHECK_EQUAL( false , well_i->getInjectionProperties(3).hasInjectionControl(Opm::WellInjector::BHP) );
|
||||
BOOST_CHECK_EQUAL( false , well_i->getInjectionProperties(4).hasInjectionControl(Opm::WellInjector::BHP) );
|
||||
BOOST_CHECK_EQUAL( true , well_i->getProductionProperties(3).hasProductionControl(Opm::WellProducer::BHP) );
|
||||
BOOST_CHECK_EQUAL( true , well_i->getInjectionProperties(4).hasInjectionControl(Opm::WellInjector::BHP) );
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(changeModeWithWHISTCTL) {
|
||||
|
||||
Reference in New Issue
Block a user