Merge pull request #5252 from akva2/fix_well_group_restart

fixed: we need to call loadRestartData on all processes
This commit is contained in:
Bård Skaflestad 2024-03-13 09:41:25 +01:00 committed by GitHub
commit a7ee48c2d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -204,7 +204,6 @@ 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_,
@ -222,10 +221,7 @@ initFromRestartFile(const RestartValue& restartValues,
config.model().target(), config.model().target(),
restartValues.wells, restartValues.wells,
this->guideRate_); this->guideRate_);
}
}
if (config.has_model()) {
BlackoilWellModelRestart(*this).loadRestartGuideRates(report_step, BlackoilWellModelRestart(*this).loadRestartGuideRates(report_step,
config, config,
restartValues.grp_nwrk.groupData, restartValues.grp_nwrk.groupData,