mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5307 Show Plot Data : Fix time step values for calculated summary vectors
This commit is contained in:
@@ -2169,8 +2169,13 @@ void populateSummaryCurvesData( std::vector<RimSummaryCurve*> curves, SummaryCur
|
|||||||
errorCurveData.values = errorValues;
|
errorCurveData.values = errorValues;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( casePosInList == cvf::UNDEFINED_SIZE_T )
|
if ( casePosInList == cvf::UNDEFINED_SIZE_T ||
|
||||||
|
curve->summaryAddressY().category() == RifEclipseSummaryAddress::SUMMARY_CALCULATED )
|
||||||
{
|
{
|
||||||
|
// Create a section with separate time axis data if
|
||||||
|
// 1. Case is not referenced before, or
|
||||||
|
// 2. We have calculated data, and it we cannot assume identical time axis
|
||||||
|
|
||||||
auto curveDataList = std::vector<CurveData>( {curveData} );
|
auto curveDataList = std::vector<CurveData>( {curveData} );
|
||||||
if ( hasErrorData ) curveDataList.push_back( errorCurveData );
|
if ( hasErrorData ) curveDataList.push_back( errorCurveData );
|
||||||
|
|
||||||
@@ -2180,6 +2185,8 @@ void populateSummaryCurvesData( std::vector<RimSummaryCurve*> curves, SummaryCur
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// Append curve data to previously created curvesdata object
|
||||||
|
|
||||||
curvesData->allCurveData[casePosInList].push_back( curveData );
|
curvesData->allCurveData[casePosInList].push_back( curveData );
|
||||||
if ( hasErrorData ) curvesData->allCurveData[casePosInList].push_back( errorCurveData );
|
if ( hasErrorData ) curvesData->allCurveData[casePosInList].push_back( errorCurveData );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user