mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
more review comments addressed
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user