#11355 Use category if result name starts with FIP or ends with NUM

This commit is contained in:
Magne Sjaastad committed 2024-04-15 10:33:56 +02:00
1 parent 44e32fcff3
commit b9d9d53964
5 files changed
+19 -3

No files matched your search

@@ -97,6 +97,17 @@ bool RiaResultNames::isFlowResultWithBothPosAndNegValues( const QString& resultN
return false;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RiaResultNames::isCategoryResult( const QString& resultName )
{
if ( resultName.endsWith( "NUM", Qt::CaseInsensitive ) ) return true;
if ( resultName.startsWith( "FIP", Qt::CaseInsensitive ) ) return true;
return false;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
@@ -32,6 +32,7 @@ namespace RiaResultNames
bool isPerCellFaceResult( const QString& resultName );
bool isLogarithmicResult( const QString& resultName );
bool isFlowResultWithBothPosAndNegValues( const QString& resultName );
bool isCategoryResult( const QString& resultName );
QString undefinedResultName();
QString undefinedGridFaultName();