Store parent_group index when loading restart group
This commit is contained in:
parent
c2522fd5ce
commit
5b3a76172b
@ -38,6 +38,9 @@ struct RstGroup {
|
||||
const double * xgrp);
|
||||
|
||||
std::string name;
|
||||
|
||||
int parent_group;
|
||||
|
||||
float oil_rate_limit;
|
||||
float water_rate_limit;
|
||||
float gas_rate_limit;
|
||||
|
@ -34,10 +34,11 @@ using M = ::Opm::UnitSystem::measure;
|
||||
|
||||
RstGroup::RstGroup(const ::Opm::UnitSystem& unit_system,
|
||||
const std::string* zwel,
|
||||
const int *,
|
||||
const int * igrp,
|
||||
const float * sgrp,
|
||||
const double * xgrp) :
|
||||
name(trim_copy(zwel[0])),
|
||||
parent_group(igrp[VI::IGroup::ParentGroup] ),
|
||||
oil_rate_limit( unit_system.to_si(M::liquid_surface_rate, sgrp[VI::SGroup::OilRateLimit])),
|
||||
water_rate_limit( unit_system.to_si(M::liquid_surface_rate, sgrp[VI::SGroup::WatRateLimit])),
|
||||
gas_rate_limit( unit_system.to_si(M::gas_surface_rate, sgrp[VI::SGroup::GasRateLimit])),
|
||||
|
Loading…
Reference in New Issue
Block a user