Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Aug 27, 2024
1 parent 2236583 commit 1c07f9e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1395,8 +1395,7 @@ QString RimSummaryCurve::accumulatedOrRateText() const
text = "User Defined : ";
}

auto accOrRate = accumulatedOrRate();
if ( accOrRate == RifEclipseSummaryAddressDefines::AccumulatedOrRateType::ACCUMULATED )
if ( accumulatedOrRate() == RifEclipseSummaryAddressDefines::AccumulatedOrRateType::ACCUMULATED )
{
text += "Accumulated";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,9 @@ void RimSummaryCurvesData::populateSummaryCurvesData( std::vector<RimSummaryCurv

if ( hasErrorData )
{
errorCurveData.name = curve->curveExportDescription( curve->errorSummaryAddressY() );
errorCurveData.values = errorValues;
errorCurveData.name = curve->curveExportDescription( curve->errorSummaryAddressY() );
errorCurveData.accumulatedOrRate = curve->accumulatedOrRate();
errorCurveData.values = errorValues;
}

auto curveDataList = std::vector<CurveData>( { curveData } );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ double RimSummaryDeclineCurve::computePredictedValue( double
double timeSinceStart,
RifEclipseSummaryAddressDefines::AccumulatedOrRateType accumulatedOrRate ) const
{
if ( accumulatedOrRate != RifEclipseSummaryAddressDefines::AccumulatedOrRateType::RATE )
if ( accumulatedOrRate == RifEclipseSummaryAddressDefines::AccumulatedOrRateType::ACCUMULATED )
{
if ( m_declineCurveType == RimSummaryDeclineCurve::DeclineCurveType::EXPONENTIAL )
{
Expand Down

0 comments on commit 1c07f9e

Please sign in to comment.