mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Only use connections in the interior for distributed wells.
This commit is contained in:
parent
91e951420f
commit
6eb835c98e
@ -281,6 +281,8 @@ namespace Opm {
|
||||
std::vector<WellInterfacePtr > well_container_;
|
||||
|
||||
// map from logically cartesian cell indices to compressed ones
|
||||
// cells not in the interior are not mapped. This deactivates
|
||||
// these for distributed wells and make the distribution non-overlapping.
|
||||
std::vector<int> cartesian_to_compressed_;
|
||||
|
||||
std::vector<bool> is_cell_perforated_;
|
||||
|
@ -1606,8 +1606,15 @@ namespace Opm {
|
||||
{
|
||||
cartesian_to_compressed_.resize(number_of_cartesian_cells, -1);
|
||||
if (global_cell) {
|
||||
auto elemIt = ebosSimulator_.gridView().template begin</*codim=*/ 0>();
|
||||
for (unsigned i = 0; i < local_num_cells_; ++i) {
|
||||
cartesian_to_compressed_[global_cell[i]] = i;
|
||||
// Skip perforations in the overlap/ghost for distributed wells.
|
||||
if (elemIt->partitionType() == Dune::InteriorEntity)
|
||||
{
|
||||
assert(ebosSimulator_.gridView().indexSet().index(*elemIt) == static_cast<int>(i));
|
||||
cartesian_to_compressed_[global_cell[i]] = i;
|
||||
}
|
||||
++elemIt;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user