mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix summary issues
* Add missing time conversion for month * #9606: FIx wrong usage of function when accessing data from summary file The result values are aggregated into the destination vector in RimSummaryCaseCollection::computeMinMax(), so make sure the vector is recreated per case. * #9602 : Make sure the plot is updated correctly for "Time since simulation start" * Move roundToNumSignificantDigits() to RiaNumericalTools * Make sure the time axis is consistent when individual time range differs
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
|
||||
#include "RimPlotAxisLogRangeCalculator.h"
|
||||
|
||||
#include "RiaNumericalTools.h"
|
||||
#include "RiaPlotDefines.h"
|
||||
|
||||
#include "RimPlotCurve.h"
|
||||
@@ -51,16 +52,11 @@ void RimPlotAxisLogRangeCalculator::computeAxisRange( double* minPositive, doubl
|
||||
|
||||
if ( curveValueRange( curve, &minPosCurveValue, &maxCurveValue ) )
|
||||
{
|
||||
if ( minPosCurveValue < minPosValue )
|
||||
{
|
||||
CVF_ASSERT( minPosCurveValue > 0.0 );
|
||||
minPosValue = minPosCurveValue;
|
||||
}
|
||||
minPosCurveValue = RiaNumericalTools::roundToClosestPowerOfTenFloor( minPosCurveValue );
|
||||
maxCurveValue = RiaNumericalTools::roundToClosestPowerOfTenCeil( maxCurveValue );
|
||||
|
||||
if ( maxCurveValue > maxValue )
|
||||
{
|
||||
maxValue = maxCurveValue;
|
||||
}
|
||||
minPosValue = std::min( minPosValue, minPosCurveValue );
|
||||
maxValue = std::max( maxValue, maxCurveValue );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user