mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #3361 from joakim-hove/simplify-conn-check
Suggestion: Simplify check for number of perforations
This commit is contained in:
commit
2966a52a0f
@ -396,11 +396,7 @@ void WellState::init(const std::vector<double>& cellPressures,
|
|||||||
}
|
}
|
||||||
|
|
||||||
const int num_perf_this_well = new_iter->second[2];
|
const int num_perf_this_well = new_iter->second[2];
|
||||||
|
const bool global_num_perf_same = (num_perf_this_well == num_perf_old_well);
|
||||||
const int num_perf_changed = parallel_well_info[w]->communication()
|
|
||||||
.sum(static_cast<int>(num_perf_old_well != num_perf_this_well));
|
|
||||||
const bool global_num_perf_same = num_perf_changed == 0;
|
|
||||||
|
|
||||||
|
|
||||||
// copy perforation rates when the number of
|
// copy perforation rates when the number of
|
||||||
// perforations is equal, otherwise initialize
|
// perforations is equal, otherwise initialize
|
||||||
|
Loading…
Reference in New Issue
Block a user