Use shared SummaryState in BlackoilWellModel

This commit is contained in:
Joakim Hove 2019-05-29 07:52:17 +02:00
parent 6edba5d94e
commit b129a10362

View File

@ -1092,7 +1092,7 @@ namespace Opm {
computeAverageFormationFactor(B_avg); computeAverageFormationFactor(B_avg);
const Opm::SummaryConfig& summaryConfig = ebosSimulator_.vanguard().summaryConfig(); const Opm::SummaryConfig& summaryConfig = ebosSimulator_.vanguard().summaryConfig();
Opm::SummaryState summaryState; const auto& summaryState = ebosSimulator_.vanguard().summaryState();
int exception_thrown = 0; int exception_thrown = 0;
try { try {
for (const auto& well : well_container_copy) { for (const auto& well : well_container_copy) {
@ -1653,7 +1653,7 @@ namespace Opm {
{ {
const std::vector<int>& resv_wells = SimFIBODetails::resvWells(wells()); const std::vector<int>& resv_wells = SimFIBODetails::resvWells(wells());
Opm::SummaryState summaryState; const auto& summaryState = ebosSimulator_.vanguard().summaryState();
int global_number_resv_wells = resv_wells.size(); int global_number_resv_wells = resv_wells.size();
global_number_resv_wells = ebosSimulator_.gridView().comm().sum(global_number_resv_wells); global_number_resv_wells = ebosSimulator_.gridView().comm().sum(global_number_resv_wells);