mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Assert on contourLevel range not being empty for cafContourLines
This commit is contained in:
@@ -211,6 +211,7 @@ void caf::ContourLines::create(const std::vector<double>& dataXY, const std::vec
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double caf::ContourLines::contourRange(const std::vector<double>& contourLevels)
|
||||
{
|
||||
CVF_ASSERT(!contourLevels.empty());
|
||||
return std::max(1.0e-6, contourLevels.back() - contourLevels.front());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user