mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Case realization parameters. Replaced HUGE_VAL by numeric_limits
This commit is contained in:
parent
4ca615e74a
commit
d043545747
@ -22,7 +22,7 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RigCaseRealizationParameters::Value::Value() : m_valueType(TYPE_NONE), m_numericValue(HUGE_VAL)
|
||||
RigCaseRealizationParameters::Value::Value() : m_valueType(TYPE_NONE), m_numericValue(std::numeric_limits<double>::infinity())
|
||||
{
|
||||
}
|
||||
|
||||
@ -98,7 +98,7 @@ void RigCaseRealizationParameters::addParameter(const QString& name, const QStri
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RigCaseRealizationParameters::Value RigCaseRealizationParameters::parameterValue(const QString& name)
|
||||
{
|
||||
if (m_parameters.count(name) == 0) return HUGE_VAL;
|
||||
if (m_parameters.count(name) == 0) return std::numeric_limits<double>::infinity();
|
||||
return m_parameters[name];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user