mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1118 When no tracer data is available, show the total well flow instead.
This commit is contained in:
parent
6aea418084
commit
c613c389f3
@ -194,14 +194,17 @@ void RimWellAllocationPlot::updateFromWell()
|
||||
}
|
||||
}
|
||||
|
||||
RigEclCellIndexCalculator cellIdxCalc(m_case->reservoirData()->mainGrid(), m_case->reservoirData()->activeCellInfo(RifReaderInterface::MATRIX_RESULTS));
|
||||
wfCalculator.reset(new RigAccWellFlowCalculator(pipeBranchesCLCoords,
|
||||
pipeBranchesCellIds,
|
||||
tracerCellFractionValues,
|
||||
cellIdxCalc));
|
||||
|
||||
if ( tracerCellFractionValues.size() )
|
||||
{
|
||||
RigEclCellIndexCalculator cellIdxCalc(m_case->reservoirData()->mainGrid(), m_case->reservoirData()->activeCellInfo(RifReaderInterface::MATRIX_RESULTS));
|
||||
wfCalculator.reset(new RigAccWellFlowCalculator(pipeBranchesCLCoords,
|
||||
pipeBranchesCellIds,
|
||||
tracerCellFractionValues,
|
||||
cellIdxCalc));
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
if (!wfCalculator)
|
||||
{
|
||||
if (pipeBranchesCLCoords.size() > 0)
|
||||
{
|
||||
@ -249,6 +252,8 @@ void RimWellAllocationPlot::updateFromWell()
|
||||
|
||||
}
|
||||
|
||||
setDescription(m_wellName + " - Allocation");
|
||||
|
||||
/// Pie chart
|
||||
|
||||
m_totalWellAllocationPlot->clearSlices();
|
||||
@ -284,10 +289,9 @@ void RimWellAllocationPlot::updateFromWell()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
m_totalWellAllocationPlot->updateConnectedEditors();
|
||||
|
||||
setDescription("Well Allocation (" + m_wellName + ")");
|
||||
|
||||
accumulatedWellFlowPlot()->updateConnectedEditors();
|
||||
}
|
||||
|
||||
|
@ -74,7 +74,7 @@ public:
|
||||
|
||||
RimWellLogTrack* trackByIndex(size_t index);
|
||||
|
||||
void loadDataAndUpdate();
|
||||
virtual void loadDataAndUpdate() override;
|
||||
void updateTracks();
|
||||
void updateTrackNames();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user