#3709 Fracture : Mix of both main grid and LGR cells when computing completion data

This commit is contained in:
Magne Sjaastad
2018-11-19 20:32:50 +01:00
parent 42d3e65416
commit 212f80f92e

View File

@@ -332,7 +332,17 @@ std::vector<size_t> RigEclipseToStimPlanCellTransmissibilityCalculator::getPoten
mainGrid->findIntersectingCells(polygonBBox, &cellIndices);
return cellIndices;
std::vector<size_t> cellIndicesToLeafCells;
for (const size_t& index : cellIndices)
{
const RigCell& cell = mainGrid->globalCellArray()[index];
if (!cell.subGrid())
{
cellIndicesToLeafCells.push_back(index);
}
}
return cellIndicesToLeafCells;
}
//--------------------------------------------------------------------------------------------------