Skip to content

Commit

Permalink
#11148: Set default name to Accumulated Flow Chart
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Feb 2, 2024
1 parent d700ebb commit 511b6f1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
#include "RimWellLogCurveCommonDataSource.h"
#include "RimWellLogLasFile.h"
#include "RimWellLogPlot.h"
#include "RimWellLogPlotNameConfig.h"
#include "RimWellLogTrack.h"
#include "RimWellPlotTools.h"

Expand Down Expand Up @@ -130,6 +131,9 @@ RimWellAllocationPlot::RimWellAllocationPlot()
RiaDefines::DepthTypeEnum::PSEUDO_LENGTH } );

m_accumulatedWellFlowPlot->setCommonDataSourceEnabled( false );
m_accumulatedWellFlowPlot->nameConfig()->setCustomName( "Accumulated Flow Chart" );
m_accumulatedWellFlowPlot->setNamingMethod( RiaDefines::ObjectNamingMethod::CUSTOM );
m_accumulatedWellFlowPlot->updateAutoName();

m_showWindow = false;
setDeletable( true );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class RimWellAllocationPlot : public RimViewWindow
void onLoadDataAndUpdate() override;

private:
void setCase( RimEclipseResultCase* eclipseCase);
void setCase( RimEclipseResultCase* eclipseCase );
void updateFromWell();
void updateWellFlowPlotXAxisTitle( RimWellLogTrack* plotTrack );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ std::vector<double> RigWellLogCurveData::depthValuesByIntervals( RiaDefines::Dep
RiaDefines::DepthUnitType destinationDepthUnit ) const
{
const std::vector<double> depthValues = RigWellLogCurveData::depthsForDepthUnit( depths( depthType ), m_depthUnit, destinationDepthUnit );
if ( depthValues.empty() ) return depthValues;

std::vector<double> filteredValues;
RiaCurveDataTools::getValuesByIntervals( depthValues, m_intervalsOfContinousValidValues, &filteredValues );
Expand Down

0 comments on commit 511b6f1

Please sign in to comment.