mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4029 3D calculations : Move result string function to RiaDefines
This commit is contained in:
parent
2fd54b1d0a
commit
3cd14df5b6
@ -126,6 +126,14 @@ bool RiaDefines::isPerCellFaceResult(const QString& resultName)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
bool RiaDefines::isNativeCategoryResult(const QString& resultName)
|
||||||
|
{
|
||||||
|
return resultName.endsWith("NUM");
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -60,6 +60,7 @@ namespace RiaDefines
|
|||||||
};
|
};
|
||||||
|
|
||||||
bool isPerCellFaceResult(const QString& resultName);
|
bool isPerCellFaceResult(const QString& resultName);
|
||||||
|
bool isNativeCategoryResult(const QString& resultName);
|
||||||
|
|
||||||
QString undefinedResultName();
|
QString undefinedResultName();
|
||||||
QString undefinedGridFaultName();
|
QString undefinedGridFaultName();
|
||||||
|
@ -1089,7 +1089,7 @@ bool RimEclipseResultDefinition::hasCategoryResult() const
|
|||||||
|
|
||||||
if (!this->hasStaticResult()) return false;
|
if (!this->hasStaticResult()) return false;
|
||||||
|
|
||||||
return this->resultVariable().contains("NUM", Qt::CaseInsensitive);
|
return RiaDefines::isNativeCategoryResult(this->resultVariable());
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user