mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#10986 Set non-visible cells to zero for aggregated expressions
For aggregated expressions, set cells outside filter to 0.0. Do nothing for normal expressions.
This commit is contained in:
parent
a4db175bea
commit
31d11f56f5
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user