mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2762 System : Use infinity() instead of HUGE_VAL (gcc6 fix)
This commit is contained in:
parent
fd0228ee01
commit
6ff50f3bca
@ -498,15 +498,15 @@ void RimEnsambleCurveSet::updateCurveColors()
|
||||
QString parameterName = m_ensambleParameter();
|
||||
if (group && !parameterName.isEmpty())
|
||||
{
|
||||
double minValue = HUGE_VAL;
|
||||
double maxValue = -HUGE_VAL;
|
||||
double minValue = std::numeric_limits<double>::infinity();
|
||||
double maxValue = -std::numeric_limits<double>::infinity();
|
||||
|
||||
for (RimSummaryCase* rimCase : group->allSummaryCases())
|
||||
{
|
||||
if (!rimCase->caseRealizationParameters().isNull())
|
||||
{
|
||||
double value = rimCase->caseRealizationParameters()->parameterValue(parameterName);
|
||||
if (value != HUGE_VAL)
|
||||
if (value != std::numeric_limits<double>::infinity())
|
||||
{
|
||||
if (value < minValue) minValue = value;
|
||||
if (value > maxValue) maxValue = value;
|
||||
|
Loading…
Reference in New Issue
Block a user