mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Create features to append plots with RFT curves (#9200)
* Add create plot with RFT curve * Add RFT segment plot with curve * Create tracks for all three branch types * Make sure the zero is displayed when adjusted minimum is changing sign
This commit is contained in:
@@ -327,6 +327,7 @@ void RimWellLogRftCurve::setRftAddress( RifEclipseRftAddress address )
|
||||
m_rftDataType = RftDataType::RFT_SEGMENT_DATA;
|
||||
m_segmentResultName = address.segmentResultName();
|
||||
m_segmentBranchIndex = address.segmentBranchIndex();
|
||||
m_segmentBranchType = address.segmentBranchType();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -2138,9 +2138,13 @@ std::pair<double, double> RimWellLogTrack::extendMinMaxRange( double minValue, d
|
||||
auto candidateMinValue = minValue - factor * range;
|
||||
if ( std::signbit( minValue ) == std::signbit( candidateMinValue ) )
|
||||
{
|
||||
// Leave minimum unchanged if the changes causes change of sign to make sure that zero is located properly
|
||||
modifiedMin = candidateMinValue;
|
||||
}
|
||||
else
|
||||
{
|
||||
// If the sign of the adjusted minimum changes, set minimum to zero to make sure that zero is located properly
|
||||
modifiedMin = 0.0;
|
||||
}
|
||||
|
||||
return { modifiedMin, modifiedMax };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user