mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 22:50:25 -05:00
#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.
This commit is contained in:
1 parent
4c57a7271c
commit
2870dc715e
1 file changed
+1
-2
@@ -377,8 +377,7 @@ void RimWellAllocationPlot::updateFromWell()
|
||||
accFlow = ( m_flowType == ACCUMULATED ? wfCalculator->accumulatedTracerFlowPrConnection( tracerName, brIdx )
|
||||
: wfCalculator->tracerFlowPrConnection( tracerName, brIdx ) );
|
||||
|
||||
if ( m_flowType == ACCUMULATED && brIdx == 0 && !accFlow.empty() ) // Add fictitious point to -1
|
||||
// for first branch
|
||||
if ( !accFlow.empty() ) // Add fictitious point to extend the first bar (topmost connection)
|
||||
{
|
||||
accFlow.push_back( accFlow.back() );
|
||||
curveDepthValues.push_back( -1.0 );
|
||||
|
||||
Reference in new issue
Block a user