Skip to content

Commit

Permalink
#10986 Set non-visible cells to zero for aggregated expressions
Browse files Browse the repository at this point in the history
For aggregated expressions, set cells outside filter to 0.0. Do nothing for normal expressions.
  • Loading branch information
magnesj committed Jan 3, 2024
1 parent a4db175 commit 31d11f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ApplicationLibCode/ProjectDataModel/RimGridCalculation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ bool RimGridCalculation::calculateForCases( const std::vector<RimEclipseCase*>&
{
RiaLogging::error( QString( " No data found for variable '%1'." ).arg( v->name() ) );
}
else if ( inputValueVisibilityFilter )
else if ( inputValueVisibilityFilter && hasAggregationExpression )
{
const double defaultValue = 0.0;
replaceFilteredValuesWithDefaultValue( defaultValue, inputValueVisibilityFilter, dataForVariable, porosityModel, calculationCase );
Expand Down

0 comments on commit 31d11f5

Please sign in to comment.