Add data::GroupValues member to RestartValue

This commit is contained in:
Joakim Hove
2020-07-04 10:06:03 +02:00
parent 30a4f2b34b
commit b9b1e734cb
5 changed files with 19 additions and 12 deletions
+2 -1
View File
@@ -826,7 +826,8 @@ RestartValue loadParallelRestart(const EclipseIO* eclIO, Action::State& actionSt
#if HAVE_MPI
data::Solution sol;
data::Wells wells;
RestartValue restartValues(sol, wells);
data::GroupValues groups;
RestartValue restartValues(sol, wells, groups);
if (eclIO)
{
@@ -403,6 +403,7 @@ namespace Opm {
// convert well data from opm-common to well state from opm-core
void wellsToState( const data::Wells& wells,
const data::GroupValues& groups,
const PhaseUsage& phases,
const bool handle_ms_well,
WellStateFullyImplicitBlackoil& state ) const;
@@ -545,7 +545,7 @@ namespace Opm {
const size_t numCells = Opm::UgGridHelpers::numCells(grid());
const bool handle_ms_well = (param_.use_multisegment_well_ && anyMSWellOpenLocal());
well_state_.resize(wells_ecl_, schedule(), handle_ms_well, numCells, phaseUsage, well_perf_data_, summaryState, globalNumWells); // Resize for restart step
wellsToState(restartValues.wells, phaseUsage, handle_ms_well, well_state_);
wellsToState(restartValues.wells, restartValues.groups, phaseUsage, handle_ms_well, well_state_);
}
previous_well_state_ = well_state_;
@@ -1597,6 +1597,7 @@ namespace Opm {
void
BlackoilWellModel<TypeTag>::
wellsToState( const data::Wells& wells,
const data::GroupValues& groups,
const PhaseUsage& phases,
const bool handle_ms_well,
WellStateFullyImplicitBlackoil& state) const