mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3596 Add new aggregation for Oil / Water / HC columns and improve speed and reliability.
* Avoid calculating results many times for each change. * Avoid drawing spurious contour lines when results are undefined. * Add aggregation type to legend header (#3594).
This commit is contained in:
@@ -211,7 +211,7 @@ void caf::ContourLines::create(const std::vector<double>& dataXY, const std::vec
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double caf::ContourLines::contourRange(const std::vector<double>& contourLevels)
|
||||
{
|
||||
return std::max(1.0, contourLevels.back() - contourLevels.front());
|
||||
return std::max(1.0e-6, contourLevels.back() - contourLevels.front());
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user