Correct a comment

This commit is contained in:
Michal Tóth committed 2025-03-10 09:15:44 +01:00
1 parent 847f9f496e
commit 0f4df22ea0
1 file changed
+1 -1
@@ -336,7 +336,7 @@ extractCPRPressureMatrix(PressureMatrix& jacobian,
if (nperf != 0) if (nperf != 0)
cell_weights /= nperf; cell_weights /= nperf;
else { 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). // 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. // Row's variable has no observable effect, since there are no perforations.
cell_weights = 1.; cell_weights = 1.;