#4029 3D calculations : Move result string function to RiaDefines

This commit is contained in:
Magne Sjaastad 2019-02-08 13:59:10 +01:00
parent 2fd54b1d0a
commit 3cd14df5b6
3 changed files with 10 additions and 1 deletions

View File

@ -126,6 +126,14 @@ bool RiaDefines::isPerCellFaceResult(const QString& resultName)
return false;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RiaDefines::isNativeCategoryResult(const QString& resultName)
{
return resultName.endsWith("NUM");
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -60,6 +60,7 @@ namespace RiaDefines
};
bool isPerCellFaceResult(const QString& resultName);
bool isNativeCategoryResult(const QString& resultName);
QString undefinedResultName();
QString undefinedGridFaultName();

View File

@ -1089,7 +1089,7 @@ bool RimEclipseResultDefinition::hasCategoryResult() const
if (!this->hasStaticResult()) return false;
return this->resultVariable().contains("NUM", Qt::CaseInsensitive);
return RiaDefines::isNativeCategoryResult(this->resultVariable());
}
//--------------------------------------------------------------------------------------------------