From 62279d7a43a31754e0fdc77e7b39533f91c839cd Mon Sep 17 00:00:00 2001 From: Gaute Lindkvist Date: Fri, 29 Jun 2018 11:25:30 +0200 Subject: [PATCH] Add ability to set GeoMech-result address programatically for Well Log Exctraction curves. --- .../ProjectDataModel/RimWellLogExtractionCurve.cpp | 8 ++++++++ .../ProjectDataModel/RimWellLogExtractionCurve.h | 3 +++ 2 files changed, 11 insertions(+) diff --git a/ApplicationCode/ProjectDataModel/RimWellLogExtractionCurve.cpp b/ApplicationCode/ProjectDataModel/RimWellLogExtractionCurve.cpp index 56cc3bd9db..77ca53fa36 100644 --- a/ApplicationCode/ProjectDataModel/RimWellLogExtractionCurve.cpp +++ b/ApplicationCode/ProjectDataModel/RimWellLogExtractionCurve.cpp @@ -886,3 +886,11 @@ void RimWellLogExtractionCurve::setEclipseResultVariable(const QString& resVarna { m_eclipseResultDefinition->setResultVariable(resVarname); } + +//-------------------------------------------------------------------------------------------------- +/// +//-------------------------------------------------------------------------------------------------- +void RimWellLogExtractionCurve::setGeoMechResultAddress(const RigFemResultAddress& resAddr) +{ + m_geomResultDefinition->setResultAddress(resAddr); +} diff --git a/ApplicationCode/ProjectDataModel/RimWellLogExtractionCurve.h b/ApplicationCode/ProjectDataModel/RimWellLogExtractionCurve.h index 62f0622d1f..4d8377d3f9 100644 --- a/ApplicationCode/ProjectDataModel/RimWellLogExtractionCurve.h +++ b/ApplicationCode/ProjectDataModel/RimWellLogExtractionCurve.h @@ -21,6 +21,8 @@ #include "RimWellLogCurve.h" +#include "RigFemResultAddress.h" + #include "cafPdmPtrField.h" #include "cafPdmChildField.h" @@ -66,6 +68,7 @@ public: void setCurrentTimeStep(int timeStep); void setEclipseResultVariable(const QString& resVarname); + void setGeoMechResultAddress(const RigFemResultAddress& resAddr); protected: virtual QString createCurveAutoName() override;