mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#709) Invalid cells destroyed the intersection calculation for well log
Omit the invalid cells from the calculation.
This commit is contained in:
parent
6267f82805
commit
cd4c9e6ee0
@ -70,6 +70,9 @@ void RigEclipseWellLogExtractor::calculateIntersection()
|
||||
for (size_t cIdx = 0; cIdx < closeCells.size(); ++cIdx)
|
||||
{
|
||||
const RigCell& cell = m_caseData->mainGrid()->globalCellArray()[closeCells[cIdx]];
|
||||
|
||||
if (cell.isInvalid()) continue;
|
||||
|
||||
const caf::SizeTArray8& cornerIndices = cell.cornerIndices();
|
||||
|
||||
hexCorners[0] = nodeCoords[cornerIndices[0]];
|
||||
|
Loading…
Reference in New Issue
Block a user