[bugfix] Do not try to save FLOWS or FLOWRES values for NNCs.

If we would try that then we would index vectors with index -1 and
possibly overwriting other system information. This was the case for
some models resulting in cryptic errror " corrupted size vs. prev_size"

Now we simply do nothing for NNCs.
This commit is contained in:
Markus Blatt 2024-02-06 16:06:11 +01:00
parent 4c8d6b5a22
commit 57da17b591

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;