mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#11385 Add exclude list used during identification of category results
This commit is contained in:
parent
b78cc23add
commit
534348c1a0
@ -102,6 +102,10 @@ bool RiaResultNames::isFlowResultWithBothPosAndNegValues( const QString& resultN
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
bool RiaResultNames::isCategoryResult( const QString& resultName )
|
bool RiaResultNames::isCategoryResult( const QString& resultName )
|
||||||
{
|
{
|
||||||
|
static std::set<QString> excludedResultNames = { "FIPOIL", "FIPGAS", "FIPWAT" };
|
||||||
|
|
||||||
|
if ( excludedResultNames.find( resultName.toUpper() ) != excludedResultNames.end() ) return false;
|
||||||
|
|
||||||
if ( resultName.endsWith( "NUM", Qt::CaseInsensitive ) ) return true;
|
if ( resultName.endsWith( "NUM", Qt::CaseInsensitive ) ) return true;
|
||||||
if ( resultName.startsWith( "FIP", Qt::CaseInsensitive ) ) return true;
|
if ( resultName.startsWith( "FIP", Qt::CaseInsensitive ) ) return true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user