Only consider perforation in the interior of the local grid.

This is needed for distributed wells to save most of the code
from checking whether a perforation is in the interior.

We add new methods compressedIndexForInterior that return -1
for non-interior cells and use that for the wells. This restores
the old behaviour before 1cfe3e0aad
This commit is contained in:
Markus Blatt
2021-10-19 16:50:42 +02:00
parent 23e0b06387
commit fa9e93529b
5 changed files with 47 additions and 8 deletions

View File

@@ -419,8 +419,8 @@ namespace Opm {
void assignWellTracerRates(data::Wells& wsrpt) const;
int compressedIndex(int cartesian_cell_idx) const override {
return ebosSimulator_.vanguard().compressedIndex(cartesian_cell_idx);
int compressedIndexForInterior(int cartesian_cell_idx) const override {
return ebosSimulator_.vanguard().compressedIndexForInterior(cartesian_cell_idx);
}
private: