more review comments addressed

This commit is contained in:
hnil
2022-12-19 11:38:16 +01:00
parent e5c76f6eb2
commit da1c174770

View File

@@ -445,7 +445,7 @@ private:
short loc = 0; short loc = 0;
for (const auto& nbInfo : nbInfos) { for (const auto& nbInfo : nbInfos) {
unsigned globJ = nbInfo.neighbor; unsigned globJ = nbInfo.neighbor;
//assert(globJ != globI); assert(globJ != globI);
res = 0.0; res = 0.0;
bMat = 0.0; bMat = 0.0;
adres = 0.0; adres = 0.0;
@@ -515,7 +515,7 @@ private:
adres *= bdyInfo.bcdata.faceArea; adres *= bdyInfo.bcdata.faceArea;
setResAndJacobi(res, bMat, adres); setResAndJacobi(res, bMat, adres);
residual_[globI] += res; residual_[globI] += res;
//jacobian_->addToBlock(globI, globI, bMat); ////SparseAdapter syntax: jacobian_->addToBlock(globI, globI, bMat);
*diagMatAddress_[globI] += bMat; *diagMatAddress_[globI] += bMat;
} }
} }