mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4026 Contour Maps: Set +infinity (invalid) as max value if no valid max value was found
This commit is contained in:
@@ -45,8 +45,6 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
|
|
||||||
#include <QDebug>
|
|
||||||
|
|
||||||
namespace caf
|
namespace caf
|
||||||
{
|
{
|
||||||
template<>
|
template<>
|
||||||
@@ -521,6 +519,10 @@ double RimContourMapProjection::calculateValueInMapCell(uint i, uint j, const st
|
|||||||
maxValue = std::max(maxValue, cellValue);
|
maxValue = std::max(maxValue, cellValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (maxValue == -std::numeric_limits<double>::infinity())
|
||||||
|
{
|
||||||
|
maxValue = std::numeric_limits<double>::infinity();
|
||||||
|
}
|
||||||
return maxValue;
|
return maxValue;
|
||||||
}
|
}
|
||||||
case RESULTS_MIN_VALUE:
|
case RESULTS_MIN_VALUE:
|
||||||
|
|||||||
Reference in New Issue
Block a user