Construct UDA values in WellInjectionProperties with correct unit

This commit is contained in:
Joakim Hove
2020-03-05 09:03:54 +01:00
parent 17ec37ae4e
commit 8501a7ead4
4 changed files with 16 additions and 16 deletions

View File

@@ -769,7 +769,7 @@ BOOST_AUTO_TEST_CASE(BHP_CMODE)
BOOST_AUTO_TEST_CASE(CMODE_DEFAULT) {
auto unit_system = UnitSystem::newMETRIC();
const Opm::Well::WellProductionProperties Pproperties(unit_system, "W");
const Opm::Well::WellInjectionProperties Iproperties("W");
const Opm::Well::WellInjectionProperties Iproperties(unit_system, "W");
BOOST_CHECK( Pproperties.controlMode == Opm::Well::ProducerCMode::CMODE_UNDEFINED );
BOOST_CHECK( Iproperties.controlMode == Opm::Well::InjectorCMode::CMODE_UNDEFINED );