Reenable BHP testing
This commit is contained in:
@@ -1570,24 +1570,23 @@ BOOST_AUTO_TEST_CASE(changeBhpLimitInHistoryModeWithWeltarg) {
|
||||
FieldPropsManager fp( deck , grid, table);
|
||||
Runspec runspec (deck);
|
||||
Schedule sched(deck, grid , fp, eclipseProperties, runspec);
|
||||
/*
|
||||
|
||||
// The BHP limit should not be effected by WCONHIST
|
||||
BOOST_CHECK_EQUAL(sched.getWell("P", 1).getProductionProperties().BHPLimit.get<double>(), 50 * 1e5); // 1
|
||||
BOOST_CHECK_EQUAL(sched.getWell("P", 2).getProductionProperties().BHPLimit.get<double>(), 50 * 1e5); // 2
|
||||
BOOST_CHECK_EQUAL(sched.getWell("P", 1).getProductionProperties().BHPLimit.getSI(), 50 * 1e5); // 1
|
||||
BOOST_CHECK_EQUAL(sched.getWell("P", 2).getProductionProperties().BHPLimit.getSI(), 50 * 1e5); // 2
|
||||
|
||||
|
||||
BOOST_CHECK_EQUAL(sched.getWell("I", 1).getInjectionProperties().BHPLimit.get<double>(), 600 * 1e5); // 1
|
||||
BOOST_CHECK_EQUAL(sched.getWell("I", 2).getInjectionProperties().BHPLimit.get<double>(), 600 * 1e5); // 2
|
||||
BOOST_CHECK_EQUAL(sched.getWell("I", 1).getInjectionProperties().BHPLimit.getSI(), 600 * 1e5); // 1
|
||||
BOOST_CHECK_EQUAL(sched.getWell("I", 2).getInjectionProperties().BHPLimit.getSI(), 600 * 1e5); // 2
|
||||
|
||||
BOOST_CHECK_EQUAL(sched.getWell("I", 2).getInjectionProperties().hasInjectionControl(Opm::Well::InjectorCMode::BHP), true);
|
||||
|
||||
// The well is producer for timestep 3 and the injection properties BHPLimit should be set to zero.
|
||||
BOOST_CHECK(sched.getWell("I", 3).isProducer());
|
||||
BOOST_CHECK_EQUAL(sched.getWell("I", 3).getInjectionProperties().BHPLimit.get<double>(), 0); // 3
|
||||
BOOST_CHECK_EQUAL(sched.getWell("I", 3).getInjectionProperties().BHPLimit.getSI(), 0); // 3
|
||||
BOOST_CHECK_EQUAL(sched.getWell("I", 3).getProductionProperties().hasProductionControl(Opm::Well::ProducerCMode::BHP), true );
|
||||
BOOST_CHECK_EQUAL(sched.getWell("I", 4).getInjectionProperties().hasInjectionControl(Opm::Well::InjectorCMode::BHP), true );
|
||||
BOOST_CHECK_EQUAL(sched.getWell("I", 4).getInjectionProperties().BHPLimit.get<double>(), 6891.2 * 1e5); // 4
|
||||
*/
|
||||
BOOST_CHECK_EQUAL(sched.getWell("I", 4).getInjectionProperties().BHPLimit.getSI(), 6891.2 * 1e5); // 4
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(changeModeWithWHISTCTL) {
|
||||
|
||||
Reference in New Issue
Block a user