mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-29 10:21:54 -06:00
#7852 Crash on dual porosity grid model load and clicking on cell in 3D view
This commit is contained in:
parent
40fc7dacd0
commit
5cd72f55f3
@ -1233,7 +1233,9 @@ deriveNeighbours(const std::vector<std::size_t>& gcells,
|
|||||||
continue;
|
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);
|
const auto other = this->cells_.getNeighbour(globID, d);
|
||||||
|
|
||||||
if ((other >= 0) && ! this->cells_.isSubdivided(other)) {
|
if ((other >= 0) && ! this->cells_.isSubdivided(other)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user