Skip to content

Commit

Permalink
#11812 Multi-segment RFT plot: Make sure reservoir Pressure is plotted
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Oct 24, 2024
1 parent 4e888ef commit 26ed0e5
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1130,20 +1130,20 @@ std::vector<double> 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() );
}
else
{
depthAddress = RifEclipseRftAddress::createBranchSegmentAddress( m_wellName(),
m_timeStep,
RiaDefines::segmentTvdDepthResultName(),
RiaDefines::segmentConnectionTvdDepthResultName(),
segmentBranchIndex(),
m_segmentBranchType() );
}
Expand All @@ -1165,13 +1165,13 @@ std::vector<double> 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 {};
Expand Down

0 comments on commit 26ed0e5

Please sign in to comment.