From 1f2b180ab79d8e9bbb2c6d054d0a0348e09002b3 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Thu, 24 Oct 2024 11:40:17 +0200 Subject: [PATCH] #11812 Multi-segment RFT plot: Make sure reservoir Pressure is plotted --- .../WellLog/RimWellLogRftCurve.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ApplicationLibCode/ProjectDataModel/WellLog/RimWellLogRftCurve.cpp b/ApplicationLibCode/ProjectDataModel/WellLog/RimWellLogRftCurve.cpp index fc4db95530..3d5cea4982 100644 --- a/ApplicationLibCode/ProjectDataModel/WellLog/RimWellLogRftCurve.cpp +++ b/ApplicationLibCode/ProjectDataModel/WellLog/RimWellLogRftCurve.cpp @@ -1130,12 +1130,12 @@ std::vector RimWellLogRftCurve::tvDepthValues() if ( m_rftDataType() == RftDataType::RFT_SEGMENT_DATA ) { - if ( RiaDefines::isSegmentConnectionResult( m_segmentResultName ) ) + if ( RiaDefines::isSegmentResult( m_segmentResultName ) ) { depthAddress = RifEclipseRftAddress::createBranchSegmentAddress( m_wellName(), m_timeStep, - RiaDefines::segmentConnectionTvdDepthResultName(), + RiaDefines::segmentTvdDepthResultName(), segmentBranchIndex(), m_segmentBranchType() ); } @@ -1143,7 +1143,7 @@ std::vector RimWellLogRftCurve::tvDepthValues() { depthAddress = RifEclipseRftAddress::createBranchSegmentAddress( m_wellName(), m_timeStep, - RiaDefines::segmentTvdDepthResultName(), + RiaDefines::segmentConnectionTvdDepthResultName(), segmentBranchIndex(), m_segmentBranchType() ); } @@ -1165,13 +1165,13 @@ std::vector RimWellLogRftCurve::measuredDepthValues( QString& prefixText { prefixText = "SEGMENT/"; - if ( RiaDefines::isSegmentConnectionResult( m_segmentResultName() ) ) + if ( RiaDefines::isSegmentResult( m_segmentResultName() ) ) { - return RimRftTools::segmentConnectionMdValues( opmRftReader, m_wellName(), m_timeStep, segmentBranchIndex(), m_segmentBranchType() ); + // Always use segment end MD values for segment data, as the curve is plotted as step left + return RimRftTools::segmentEndMdValues( opmRftReader, m_wellName(), m_timeStep, segmentBranchIndex(), m_segmentBranchType() ); } - // Always use segment end MD values for segment data, as the curve is plotted as step left - return RimRftTools::segmentEndMdValues( opmRftReader, m_wellName(), m_timeStep, segmentBranchIndex(), m_segmentBranchType() ); + return RimRftTools::segmentConnectionMdValues( opmRftReader, m_wellName(), m_timeStep, segmentBranchIndex(), m_segmentBranchType() ); } return {};