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

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

No files matched your search

@@ -126,6 +126,14 @@ bool RiaDefines::isPerCellFaceResult(const QString& resultName)
return false;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RiaDefines::isNativeCategoryResult(const QString& resultName)
{
return resultName.endsWith("NUM");
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
+1
View File
@@ -60,6 +60,7 @@ namespace RiaDefines
};
bool isPerCellFaceResult(const QString& resultName);
bool isNativeCategoryResult(const QString& resultName);
QString undefinedResultName();
QString undefinedGridFaultName();
@@ -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());
}
//--------------------------------------------------------------------------------------------------