mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #5252 from akva2/fix_well_group_restart
fixed: we need to call loadRestartData on all processes
This commit is contained in:
commit
a7ee48c2d5
@ -204,28 +204,24 @@ initFromRestartFile(const RestartValue& restartValues,
|
|||||||
this->initializeWellProdIndCalculators();
|
this->initializeWellProdIndCalculators();
|
||||||
initializeWellPerfData();
|
initializeWellPerfData();
|
||||||
|
|
||||||
if (! this->wells_ecl_.empty()) {
|
handle_ms_well &= anyMSWellOpenLocal();
|
||||||
handle_ms_well &= anyMSWellOpenLocal();
|
// Resize for restart step
|
||||||
// Resize for restart step
|
this->wellState().resize(this->wells_ecl_, this->local_parallel_well_info_,
|
||||||
this->wellState().resize(this->wells_ecl_, this->local_parallel_well_info_,
|
this->schedule(), handle_ms_well, numCells,
|
||||||
this->schedule(), handle_ms_well, numCells,
|
this->well_perf_data_, this->summaryState_);
|
||||||
this->well_perf_data_, this->summaryState_);
|
|
||||||
|
|
||||||
BlackoilWellModelRestart(*this).loadRestartData(restartValues.wells,
|
BlackoilWellModelRestart(*this).loadRestartData(restartValues.wells,
|
||||||
restartValues.grp_nwrk,
|
restartValues.grp_nwrk,
|
||||||
handle_ms_well,
|
handle_ms_well,
|
||||||
this->wellState(),
|
this->wellState(),
|
||||||
this->groupState());
|
this->groupState());
|
||||||
|
|
||||||
if (config.has_model()) {
|
|
||||||
BlackoilWellModelRestart(*this).loadRestartGuideRates(report_step,
|
|
||||||
config.model().target(),
|
|
||||||
restartValues.wells,
|
|
||||||
this->guideRate_);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (config.has_model()) {
|
if (config.has_model()) {
|
||||||
|
BlackoilWellModelRestart(*this).loadRestartGuideRates(report_step,
|
||||||
|
config.model().target(),
|
||||||
|
restartValues.wells,
|
||||||
|
this->guideRate_);
|
||||||
|
|
||||||
BlackoilWellModelRestart(*this).loadRestartGuideRates(report_step,
|
BlackoilWellModelRestart(*this).loadRestartGuideRates(report_step,
|
||||||
config,
|
config,
|
||||||
restartValues.grp_nwrk.groupData,
|
restartValues.grp_nwrk.groupData,
|
||||||
|
Loading…
Reference in New Issue
Block a user