mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-29 16:40:20 -05:00
Improve detection of special *FIP* property names
Make sure RFIP* and SFIP* are not treated as category results
This commit is contained in:
1 parent
de573a83cc
commit
12ae4dbaaa
3 files changed
+63
-4
No files matched your search
@@ -102,10 +102,12 @@ bool RiaResultNames::isFlowResultWithBothPosAndNegValues( const QString& resultN
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RiaResultNames::isCategoryResult( const QString& resultName )
|
||||
{
|
||||
// Check for special FIP* results. This will also match statistics results FIPOIL_MEAN, FIPOIL_P90, ...
|
||||
if ( resultName.startsWith( "FIPOIL", Qt::CaseInsensitive ) ) return false;
|
||||
if ( resultName.startsWith( "FIPGAS", Qt::CaseInsensitive ) ) return false;
|
||||
if ( resultName.startsWith( "FIPWAT", Qt::CaseInsensitive ) ) return false;
|
||||
// Identify and mark some FIP-results as non-category result.
|
||||
// This includes statistics results FIPOIL_MEAN, FIPOIL_P90, SFIP* and RFIP*.
|
||||
|
||||
if ( resultName.contains( "FIPOIL", Qt::CaseInsensitive ) ) return false;
|
||||
if ( resultName.contains( "FIPGAS", Qt::CaseInsensitive ) ) return false;
|
||||
if ( resultName.contains( "FIPWAT", Qt::CaseInsensitive ) ) return false;
|
||||
|
||||
if ( resultName.endsWith( "NUM", Qt::CaseInsensitive ) ) return true;
|
||||
if ( resultName.startsWith( "FIP", Qt::CaseInsensitive ) ) return true;
|
||||
|
||||
Reference in new issue
Block a user