mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Improve RFT reader performance
* #9963 Rft reader: Search for DATA file when required WSEGLINK is used to establish the branch topology for MSW wells. Search and read WSEGLINK data when segment data is requested by the user. This can be a time consuming operation. Avoid doing this search for standard RFT plots. * Make sure that single summary curves are displayed correctly * Make sure single summary curves are visible in the plot
This commit is contained in:
@@ -376,7 +376,7 @@ void RimWellRftPlot::updateEditorsFromCurves()
|
||||
{
|
||||
selectedSources.insert( RifDataSourceForRftPlt( curveDef.address().wellLogFile() ) );
|
||||
}
|
||||
else if ( curveDef.address().sourceType() == RifDataSourceForRftPlt::SourceType::SUMMARY_RFT )
|
||||
else if ( ( curveDef.address().sourceType() == RifDataSourceForRftPlt::SourceType::SUMMARY_RFT ) && curveDef.address().ensemble() )
|
||||
{
|
||||
selectedSources.insert( RifDataSourceForRftPlt( curveDef.address().ensemble() ) );
|
||||
}
|
||||
@@ -545,12 +545,22 @@ void RimWellRftPlot::updateCurvesInPlot( const std::set<RiaRftPltCurveDefinition
|
||||
curveDefToAdd.timeStep(),
|
||||
RifEclipseRftAddress::RftWellLogChannelType::PRESSURE );
|
||||
curve->setRftAddress( address );
|
||||
curve->setZOrder( 1 );
|
||||
|
||||
double zValue = 1.0;
|
||||
if ( !curveDefToAdd.address().ensemble() )
|
||||
{
|
||||
zValue = RiuQwtPlotCurveDefines::zDepthForIndex( RiuQwtPlotCurveDefines::ZIndex::Z_SINGLE_CURVE_NON_OBSERVED );
|
||||
}
|
||||
curve->setZOrder( zValue );
|
||||
|
||||
applyCurveAppearance( curve );
|
||||
|
||||
bool isFirstSummaryCurveInEnsemble = ensemblesWithSummaryCurves.count( curveDefToAdd.address().ensemble() ) == 0u;
|
||||
curve->setShowInLegend( isFirstSummaryCurveInEnsemble );
|
||||
ensemblesWithSummaryCurves.insert( curveDefToAdd.address().ensemble() );
|
||||
if ( curveDefToAdd.address().ensemble() )
|
||||
{
|
||||
bool isFirstSummaryCurveInEnsemble = ensemblesWithSummaryCurves.count( curveDefToAdd.address().ensemble() ) == 0u;
|
||||
curve->setShowInLegend( isFirstSummaryCurveInEnsemble );
|
||||
ensemblesWithSummaryCurves.insert( curveDefToAdd.address().ensemble() );
|
||||
}
|
||||
}
|
||||
else if ( m_showStatisticsCurves && curveDefToAdd.address().sourceType() == RifDataSourceForRftPlt::SourceType::ENSEMBLE_RFT )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user