#7852 Crash on dual porosity grid model load and clicking on cell in 3D view

This commit is contained in:
Magne Sjaastad committed 2021-08-03 14:35:34 +02:00
1 parent 40fc7dacd0
commit 5cd72f55f3
1 file changed
+3 -1
@@ -1233,7 +1233,9 @@ deriveNeighbours(const std::vector<std::size_t>& gcells,
continue;
}
if (T[globID] > 0.0) {
// Guard access to transmissibility vector. Crash seen in some dual porosity models
// https://github.com/OPM/ResInsight/issues/7852
if (globID < T.size() && T[globID] > 0.0) {
const auto other = this->cells_.getNeighbour(globID, d);
if ((other >= 0) && ! this->cells_.isSubdivided(other)) {