Skip to content

Commit 824e6ff

Browse files
committed
#13405 WellAllocationPlot: Fix missing first connection in plot and plot data
The fictitious depth point (-1.0) that extends the topmost connection bar was only added for accumulated flow on branch 0. For inflow mode and accumulated mode on branches > 0, the first connection bar had no extent and was invisible, and the data export skipped the first real connection.
1 parent 4c57a72 commit 824e6ff

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ApplicationLibCode/ProjectDataModel/Flow/RimWellAllocationPlot.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,7 @@ void RimWellAllocationPlot::updateFromWell()
377377
accFlow = ( m_flowType == ACCUMULATED ? wfCalculator->accumulatedTracerFlowPrConnection( tracerName, brIdx )
378378
: wfCalculator->tracerFlowPrConnection( tracerName, brIdx ) );
379379

380-
if ( m_flowType == ACCUMULATED && brIdx == 0 && !accFlow.empty() ) // Add fictitious point to -1
381-
// for first branch
380+
if ( !accFlow.empty() ) // Add fictitious point to extend the first bar (topmost connection)
382381
{
383382
accFlow.push_back( accFlow.back() );
384383
curveDepthValues.push_back( -1.0 );

0 commit comments

Comments
 (0)