mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-22 09:16:27 -06:00
[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:
parent
4c8d6b5a22
commit
57da17b591
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user