mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4699 Guard use of TERNARY cell result in property filters
This commit is contained in:
@@ -119,7 +119,11 @@ void RicEclipsePropertyFilterFeatureImpl::setDefaults( RimEclipsePropertyFilter*
|
||||
propertyFilter->firstAncestorOrThisOfTypeAsserted( reservoirView );
|
||||
|
||||
propertyFilter->resultDefinition()->setEclipseCase( reservoirView->eclipseCase() );
|
||||
|
||||
if ( !RiaDefines::isPerCellFaceResult( reservoirView->cellResult()->resultVariable() ) )
|
||||
{
|
||||
propertyFilter->resultDefinition()->simpleCopy( reservoirView->cellResult() );
|
||||
}
|
||||
|
||||
propertyFilter->resultDefinition()->loadResult();
|
||||
propertyFilter->setToDefaultValues();
|
||||
|
||||
@@ -1593,6 +1593,20 @@ QList<caf::PdmOptionItemInfo>
|
||||
optionList.push_back( caf::PdmOptionItemInfo( s, s ) );
|
||||
}
|
||||
|
||||
if ( addPerCellFaceOptionItems )
|
||||
{
|
||||
for ( const QString& s : cellFaceResultNames )
|
||||
{
|
||||
if ( showDerivedResultsFirst )
|
||||
{
|
||||
optionList.push_front( caf::PdmOptionItemInfo( s, s ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
optionList.push_back( caf::PdmOptionItemInfo( s, s ) );
|
||||
}
|
||||
}
|
||||
|
||||
// Ternary Result
|
||||
if ( ternaryEnabled )
|
||||
{
|
||||
@@ -1610,19 +1624,6 @@ QList<caf::PdmOptionItemInfo>
|
||||
RiaDefines::ternarySaturationResultName() ) );
|
||||
}
|
||||
}
|
||||
if ( addPerCellFaceOptionItems )
|
||||
{
|
||||
for ( const QString& s : cellFaceResultNames )
|
||||
{
|
||||
if ( showDerivedResultsFirst )
|
||||
{
|
||||
optionList.push_front( caf::PdmOptionItemInfo( s, s ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
optionList.push_back( caf::PdmOptionItemInfo( s, s ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
optionList.push_front(
|
||||
|
||||
Reference in New Issue
Block a user