mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-22 22:08:13 -06:00
#14345 Use cell filter geometry for grid calculation visibility
The visibility mask for 'filter by view' was taken from the view's visible cells, which are limited to the active cells of the view's case. When applying the calculation to additional cases with different ACTNUM, cells inside the filter geometry that are inactive in the view's case were excluded from the aggregation for cases where they are active, giving too low sums. Build the mask from the cell filter geometry (RANGE_FILTERED + RANGE_FILTERED_INACTIVE) instead, so each calculation case contributes its own active cells inside the filters. Property filters in the view no longer affect the calculation. The result filtering now uses the same mask as the input filtering, also when the visibility filter is provided by the caller.
This commit is contained in:
1 parent
be9969d5b4
commit
da28ffe613
2 files changed
+20
-9
No files matched your search
@@ -106,7 +106,7 @@ protected:
|
||||
RimEclipseCase* sourceCase,
|
||||
RimEclipseCase* destinationCase ) const;
|
||||
|
||||
void filterResults( RimGridView* cellFilterView,
|
||||
void filterResults( cvf::UByteArray* visibility,
|
||||
const std::vector<std::vector<double>>& values,
|
||||
size_t timeStep,
|
||||
RimGridCalculation::DefaultValueType defaultValueType,
|
||||
|
||||
Reference in new issue
Block a user