diff --git a/ApplicationCode/Commands/WellLogCommands/RicNewWellBoreStabilityPlotFeature.cpp b/ApplicationCode/Commands/WellLogCommands/RicNewWellBoreStabilityPlotFeature.cpp index 7c613988d5..e0a53abf2d 100644 --- a/ApplicationCode/Commands/WellLogCommands/RicNewWellBoreStabilityPlotFeature.cpp +++ b/ApplicationCode/Commands/WellLogCommands/RicNewWellBoreStabilityPlotFeature.cpp @@ -78,6 +78,7 @@ RimWellBoreStabilityPlot* RimWellBoreStabilityPlot* plot = RicNewWellLogPlotFeatureImpl::createWellBoreStabilityPlot( false, "Well Bore Stability", parameters ); + plot->setCaseWellPathAndTimeStep( geoMechCase, wellPath, timeStep ); { auto task = progInfo.task( "Creating formation track", 2 ); diff --git a/ApplicationCode/ProjectDataModel/RimWellBoreStabilityPlot.cpp b/ApplicationCode/ProjectDataModel/RimWellBoreStabilityPlot.cpp index ceb31bfc81..f13f4b5a11 100644 --- a/ApplicationCode/ProjectDataModel/RimWellBoreStabilityPlot.cpp +++ b/ApplicationCode/ProjectDataModel/RimWellBoreStabilityPlot.cpp @@ -82,6 +82,16 @@ void RimWellBoreStabilityPlot::copyWbsParameters( const RimWbsParameters* wbsPar } } +//-------------------------------------------------------------------------------------------------- +/// +//-------------------------------------------------------------------------------------------------- +void RimWellBoreStabilityPlot::setCaseWellPathAndTimeStep( RimGeoMechCase* geoMechCase, RimWellPath* wellPath, int timeStep ) +{ + m_wbsParameters->setGeoMechCase( geoMechCase ); + m_wbsParameters->setWellPath( wellPath ); + m_wbsParameters->setTimeStep( timeStep ); +} + //-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- diff --git a/ApplicationCode/ProjectDataModel/RimWellBoreStabilityPlot.h b/ApplicationCode/ProjectDataModel/RimWellBoreStabilityPlot.h index e17f53929a..4d396b7f87 100644 --- a/ApplicationCode/ProjectDataModel/RimWellBoreStabilityPlot.h +++ b/ApplicationCode/ProjectDataModel/RimWellBoreStabilityPlot.h @@ -39,6 +39,7 @@ public: void applyWbsParametersToExtractor( RigGeoMechWellLogExtractor* extractor ); double userDefinedValue( const RigWbsParameter& parameter ) const; void copyWbsParameters( const RimWbsParameters* wbsParameters ); + void setCaseWellPathAndTimeStep( RimGeoMechCase* geoMechCase, RimWellPath* wellPath, int timeStep ); protected: void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;