mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3709 Fracture : Mix of both main grid and LGR cells when computing completion data
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user