(#709) Invalid cells destroyed the intersection calculation for well log

Omit the invalid cells from the calculation.
This commit is contained in:
Jacob Støren 2015-12-15 13:41:32 +01:00
parent 6267f82805
commit cd4c9e6ee0

View File

@ -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]];