From e743f2aa1eba49bc7330f0cb579dbb1a729562f3 Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Thu, 26 Sep 2024 14:28:41 +0200 Subject: [PATCH] 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. --- opm/simulators/flow/Transmissibility_impl.hpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/opm/simulators/flow/Transmissibility_impl.hpp b/opm/simulators/flow/Transmissibility_impl.hpp index 24cf0303e..63cd04923 100644 --- a/opm/simulators/flow/Transmissibility_impl.hpp +++ b/opm/simulators/flow/Transmissibility_impl.hpp @@ -1048,12 +1048,9 @@ applyPinchNncToGridTrans_(const std::unordered_map& 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; }