Move hard coded parameter names to RiaDefines

This commit is contained in:
Gaute Lindkvist
2018-07-02 09:47:34 +02:00
parent 0d9f810718
commit 0a0cb584b5
6 changed files with 124 additions and 21 deletions

View File

@@ -483,8 +483,8 @@ void RimGeoMechResultDefinition::loadResult()
{
if (m_geomCase && m_geomCase->geoMechData())
{
if (this->resultAddress().fieldName == "FractureGradient" ||
this->resultAddress().fieldName == "ShearFailureGradient")
if (this->resultAddress().fieldName == RiaDefines::wellPathFGResultName().toStdString() ||
this->resultAddress().fieldName == RiaDefines::wellPathSFGResultName().toStdString())
{
RigFemResultAddress stressResAddr(RIG_ELEMENT_NODAL, std::string("ST"), "");
RigFemResultAddress porBarResAddr(RIG_ELEMENT_NODAL, std::string("POR-Bar"), "");