From 63d8bf693eeb2ac3da481c749f25ede38cbbd374 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Thu, 24 Oct 2024 11:38:18 +0200 Subject: [PATCH] #11812 Multi-segment RFT plot: Make sure reservoir Pressure is plotted --- .../WellLog/RimWellLogRftCurve.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ApplicationLibCode/ProjectDataModel/WellLog/RimWellLogRftCurve.cpp b/ApplicationLibCode/ProjectDataModel/WellLog/RimWellLogRftCurve.cpp index fc4db95530..8f8d667608 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 {};