mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Take the correct perf depth when calculating the depth differences in the the init function of the MultisegmentWell class
This commit is contained in:
@@ -139,7 +139,8 @@ namespace Opm
|
|||||||
for (int local_perf_index = 0; local_perf_index < this->number_of_perforations_; ++local_perf_index) {
|
for (int local_perf_index = 0; local_perf_index < this->number_of_perforations_; ++local_perf_index) {
|
||||||
// This variable loops over the number_of_perforations_ of *this* process, hence it is *local*.
|
// This variable loops over the number_of_perforations_ of *this* process, hence it is *local*.
|
||||||
const int cell_idx = this->well_cells_[local_perf_index];
|
const int cell_idx = this->well_cells_[local_perf_index];
|
||||||
this->cell_perforation_depth_diffs_[local_perf_index] = depth_arg[cell_idx] - this->perf_depth_[local_perf_index];
|
// Here we need to access the perf_depth_ at the global perforation index though!
|
||||||
|
this->cell_perforation_depth_diffs_[local_perf_index] = depth_arg[cell_idx] - this->perf_depth_[this->pw_info_.localToGlobal(local_perf_index)];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user