From da1c1747706b269de782a07b099b0c815f0a1357 Mon Sep 17 00:00:00 2001 From: hnil Date: Mon, 19 Dec 2022 11:38:16 +0100 Subject: [PATCH] more review comments addressed --- opm/models/discretization/common/tpfalinearizer.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opm/models/discretization/common/tpfalinearizer.hh b/opm/models/discretization/common/tpfalinearizer.hh index 4063192fc..bef855685 100644 --- a/opm/models/discretization/common/tpfalinearizer.hh +++ b/opm/models/discretization/common/tpfalinearizer.hh @@ -445,7 +445,7 @@ private: short loc = 0; for (const auto& nbInfo : nbInfos) { unsigned globJ = nbInfo.neighbor; - //assert(globJ != globI); + assert(globJ != globI); res = 0.0; bMat = 0.0; adres = 0.0; @@ -515,7 +515,7 @@ private: adres *= bdyInfo.bcdata.faceArea; setResAndJacobi(res, bMat, adres); residual_[globI] += res; - //jacobian_->addToBlock(globI, globI, bMat); + ////SparseAdapter syntax: jacobian_->addToBlock(globI, globI, bMat); *diagMatAddress_[globI] += bMat; } }