mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-22 09:16:27 -06:00
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:
parent
9e31831917
commit
e743f2aa1e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user