From 0f4df22ea03e8490a514608cf738b477872925d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20T=C3=B3th?= Date: Mon, 10 Mar 2025 09:15:44 +0100 Subject: [PATCH] Correct a comment --- opm/simulators/wells/StandardWellEquations.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/simulators/wells/StandardWellEquations.cpp b/opm/simulators/wells/StandardWellEquations.cpp index ffbdfd59ef..09f0e3c2d5 100644 --- a/opm/simulators/wells/StandardWellEquations.cpp +++ b/opm/simulators/wells/StandardWellEquations.cpp @@ -336,7 +336,7 @@ extractCPRPressureMatrix(PressureMatrix& jacobian, if (nperf != 0) cell_weights /= nperf; else { - // Edge case: the well has no active perforations on this rank (duneC_.size==0). + // duneC_.size==0, which can happen e.g. if a well has no active perforations on this rank. // Add positive weight to diagonal to regularize Jacobian (other row entries are 0). // Row's variable has no observable effect, since there are no perforations. cell_weights = 1.;