Well rates which should go to UDA are loaded with input units

This commit is contained in:
Joakim Hove
2020-03-03 08:33:07 +01:00
parent e3a9174aa3
commit e1bf7b2298

View File

@@ -57,13 +57,13 @@ RstWell::RstWell(const ::Opm::UnitSystem& unit_system,
hist_requested_control( iwel[VI::IWell::HistReqWCtrl]),
msw_index( iwel[VI::IWell::MsWID]),
completion_ordering( iwel[VI::IWell::CompOrd]),
orat_target( unit_system.to_si(M::liquid_surface_rate, swel[VI::SWell::OilRateTarget])),
wrat_target( unit_system.to_si(M::liquid_surface_rate, swel[VI::SWell::WatRateTarget])),
grat_target( unit_system.to_si(M::gas_surface_rate, swel[VI::SWell::GasRateTarget])),
lrat_target( unit_system.to_si(M::liquid_surface_rate, swel[VI::SWell::LiqRateTarget])),
resv_target( unit_system.to_si(M::rate, swel[VI::SWell::ResVRateTarget])),
thp_target( unit_system.to_si(M::pressure, swel[VI::SWell::THPTarget])),
bhp_target_float( unit_system.to_si(M::pressure, swel[VI::SWell::BHPTarget])),
orat_target( unit_system.to_si(M::identity, swel[VI::SWell::OilRateTarget])),
wrat_target( unit_system.to_si(M::identity, swel[VI::SWell::WatRateTarget])),
grat_target( unit_system.to_si(M::identity, swel[VI::SWell::GasRateTarget])),
lrat_target( unit_system.to_si(M::identity, swel[VI::SWell::LiqRateTarget])),
resv_target( unit_system.to_si(M::identity, swel[VI::SWell::ResVRateTarget])),
thp_target( unit_system.to_si(M::identity, swel[VI::SWell::THPTarget])),
bhp_target_float( unit_system.to_si(M::identity, swel[VI::SWell::BHPTarget])),
hist_lrat_target( unit_system.to_si(M::liquid_surface_rate, swel[VI::SWell::HistLiqRateTarget])),
hist_grat_target( unit_system.to_si(M::gas_surface_rate, swel[VI::SWell::HistGasRateTarget])),
hist_bhp_target( unit_system.to_si(M::pressure, swel[VI::SWell::HistBHPTarget])),