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

This commit is contained in:
Magne Sjaastad
2024-04-14 09:58:36 +02:00
parent 44e32fcff3
commit b9d9d53964
5 changed files with 19 additions and 3 deletions

View File

@@ -22,6 +22,7 @@
#include "RiaCellDividingTools.h"
#include "RiaLogging.h"
#include "RiaResultNames.h"
#include "RiaStringEncodingTools.h"
#include "RiaTextStringTools.h"
@@ -439,7 +440,7 @@ bool RifEclipseInputFileTools::exportKeywords( const QString& resul
if ( resultValues.empty() ) continue;
double defaultExportValue = 0.0;
if ( keyword.endsWith( "NUM" ) )
if ( RiaResultNames::isCategoryResult( keyword ) )
{
defaultExportValue = 1.0;
}