mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fixed bug: Missing well cells in lgr when range filtering
p4#: 21442
This commit is contained in:
@@ -538,8 +538,6 @@ void RivReservoirViewPartMgr::computeRangeVisibility(ReservoirGeometryCacheType
|
||||
CVF_ASSERT(grid != NULL);
|
||||
CVF_ASSERT(nativeVisibility->size() == grid->cellCount());
|
||||
|
||||
RivReservoirPartMgr* reservoirGridPartMgr = &m_geometries[geometryType];
|
||||
|
||||
if (rangeFilterColl->hasActiveFilters())
|
||||
{
|
||||
if (cellVisibility != nativeVisibility) (*cellVisibility) = (*nativeVisibility);
|
||||
@@ -554,7 +552,17 @@ void RivReservoirViewPartMgr::computeRangeVisibility(ReservoirGeometryCacheType
|
||||
if (!grid->isMainGrid())
|
||||
{
|
||||
lgr = static_cast<const RigLocalGrid*>(grid);
|
||||
|
||||
size_t parentGridIndex = lgr->parentGrid()->gridIndex();
|
||||
CVF_ASSERT(parentGridIndex < grid->gridIndex());
|
||||
|
||||
if (geometryType == RANGE_FILTERED_WELL_CELLS)
|
||||
{
|
||||
geometryType = RANGE_FILTERED; // Use the range filtering in the parent grid, not the well cells in the parent grid
|
||||
}
|
||||
|
||||
RivReservoirPartMgr* reservoirGridPartMgr = &m_geometries[geometryType];
|
||||
|
||||
parentGridVisibilities = reservoirGridPartMgr->cellVisibility(parentGridIndex);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user