mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-16 18:34:54 -06:00
#5307 Show Plot Data : Fix time step values for calculated summary vectors
This commit is contained in:
parent
89c306cb5a
commit
ac752421f1
@ -2169,8 +2169,13 @@ void populateSummaryCurvesData( std::vector<RimSummaryCurve*> curves, SummaryCur
|
||||
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} );
|
||||
if ( hasErrorData ) curveDataList.push_back( errorCurveData );
|
||||
|
||||
@ -2180,6 +2185,8 @@ void populateSummaryCurvesData( std::vector<RimSummaryCurve*> curves, SummaryCur
|
||||
}
|
||||
else
|
||||
{
|
||||
// Append curve data to previously created curvesdata object
|
||||
|
||||
curvesData->allCurveData[casePosInList].push_back( curveData );
|
||||
if ( hasErrorData ) curvesData->allCurveData[casePosInList].push_back( errorCurveData );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user