Load well alq value when loading from restart file

This commit is contained in:
Joakim Hove 2020-10-04 15:31:12 +02:00
parent 528548ebce
commit 007ef0e94f
3 changed files with 3 additions and 0 deletions

View File

@ -88,6 +88,7 @@ struct RstWell {
float datum_depth;
float drainage_radius;
float efficiency_factor;
float alq_value;
double oil_rate;
double water_rate;

View File

@ -82,6 +82,7 @@ RstWell::RstWell(const ::Opm::UnitSystem& unit_system,
datum_depth( unit_system.to_si(M::length, swel[VI::SWell::DatumDepth])),
drainage_radius( unit_system.to_si(M::length, swel_value(swel[VI::SWell::DrainageRadius]))),
efficiency_factor( unit_system.to_si(M::identity, swel[VI::SWell::EfficiencyFactor1])),
alq_value( swel[VI::SWell::Alq_value]),
oil_rate( unit_system.to_si(M::liquid_surface_rate, xwel[VI::XWell::OilPrRate])),
water_rate( unit_system.to_si(M::liquid_surface_rate, xwel[VI::XWell::WatPrRate])),
gas_rate( unit_system.to_si(M::gas_surface_rate, xwel[VI::XWell::GasPrRate])),

View File

@ -149,6 +149,7 @@ Well::Well(const RestartIO::RstWell& rst_well,
p->LiquidRate = rst_well.lrat_target ;
p->ResVRate = rst_well.resv_target ;
p->VFPTableNumber = rst_well.vfp_table;
p->ALQValue = rst_well.alq_value;
p->predictionMode = this->prediction_mode;
if (rst_well.orat_target != 0)