Merge pull request #873 from blattms/nnc-fix-flows-flores

[bugfix] Do not try to save FLOWS or FLOWRES values for NNCs.
This commit is contained in:
Atgeirr Flø Rasmussen 2024-02-07 11:50:40 +01:00 committed by GitHub
commit edbe1a113a

View File

@ -665,6 +665,9 @@ public:
OPM_TIMEBLOCK_LOCAL(fluxCalculationForEachCell);
for (const auto& nbInfo : nbInfos) {
OPM_TIMEBLOCK_LOCAL(fluxCalculationForEachFace);
// not for NNCs
if (nbInfo.res_nbinfo.dirId < 0)
continue;
unsigned globJ = nbInfo.neighbor;
assert(globJ != globI);
adres = 0.0;