Skip bogus warning about missing cells for PINCH NNCs

Cells are only missing if both are in the ghost overlap layer.
In this case we do not have a connection here to keep the matrix
more sparse.
This commit is contained in:
Markus Blatt 2024-09-26 14:28:41 +02:00
parent 9e31831917
commit e743f2aa1e

View File

@ -1048,12 +1048,9 @@ applyPinchNncToGridTrans_(const std::unordered_map<std::size_t,int>& cartesianTo
continue;
if (low == -1 || high == -1) {
// \todo Check why we end up here for some models in parallel
// Discard the NNC if it is between active cell and inactive cell
std::ostringstream sstr;
sstr << "PINCH NNC between active and inactive cells ("
<< low << " -> " << high << ") with globalcell is (" << c1 << "->" << c2 <<")";
OpmLog::warning(sstr.str());
// We can end up here if one of the cells is overlap/ghost, because those
// are lacking connections to other cells in the ghost/overlap.
// Hence discard the NNC if it is between active cell and inactive cell
continue;
}