mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Use global number of perforations when initializing well.
The local number of perforations is not correct anymore for distributed wells.
This commit is contained in:
@@ -359,7 +359,7 @@ namespace Opm
|
||||
temperature_[w] = well.injectionControls(summary_state).temperature;
|
||||
}
|
||||
|
||||
const int num_perf_this_well = well_perf_data_[w].size();
|
||||
const int num_perf_this_well = well_info.communication().sum(well_perf_data_[w].size());
|
||||
if ( num_perf_this_well == 0 ) {
|
||||
// No perforations of the well. Initialize to zero.
|
||||
bhp_[w] = 0.;
|
||||
|
||||
Reference in New Issue
Block a user