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:
parent
9b90799e4c
commit
653b0eb856
@ -45,8 +45,6 @@
|
||||
#include <algorithm>
|
||||
#include <omp.h>
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
namespace caf
|
||||
{
|
||||
template<>
|
||||
@ -521,6 +519,10 @@ double RimContourMapProjection::calculateValueInMapCell(uint i, uint j, const st
|
||||
maxValue = std::max(maxValue, cellValue);
|
||||
}
|
||||
}
|
||||
if (maxValue == -std::numeric_limits<double>::infinity())
|
||||
{
|
||||
maxValue = std::numeric_limits<double>::infinity();
|
||||
}
|
||||
return maxValue;
|
||||
}
|
||||
case RESULTS_MIN_VALUE:
|
||||
|
Loading…
Reference in New Issue
Block a user