mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2610 Fix a few Linux build errors
This commit is contained in:
parent
7dc41bd981
commit
8491fd7f6c
@ -61,12 +61,15 @@ static QTextStream& operator >> (QTextStream& str, RifEclipseSummaryAddress& sob
|
||||
return str;
|
||||
}
|
||||
|
||||
template<>
|
||||
void caf::AppEnum< RimEnsambleCurveSet::ColorMode >::setUp()
|
||||
namespace caf
|
||||
{
|
||||
template<>
|
||||
void AppEnum< RimEnsambleCurveSet::ColorMode >::setUp()
|
||||
{
|
||||
addItem(RimEnsambleCurveSet::SINGLE_COLOR, "SINGLE_COLOR", "Single Color");
|
||||
addItem(RimEnsambleCurveSet::BY_ENSAMBLE_PARAM, "BY_ENSAMBLE_PARAM", "By Ensamble Parameter");
|
||||
setDefault(RimEnsambleCurveSet::SINGLE_COLOR);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "RigCaseRealizationParameters.h"
|
||||
|
||||
#include <cmath>
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
|
@ -18,6 +18,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "cvfBase.h"
|
||||
#include "cvfObject.h"
|
||||
|
||||
#include <QString>
|
||||
|
@ -45,9 +45,9 @@ TEST(RifCaseRealizationParametersReaderTest, SuccessfulParsing)
|
||||
const cvf::ref<RigCaseRealizationParameters> parameters = reader.parameters();
|
||||
std::map<QString, double> params = parameters->parameters();
|
||||
|
||||
EXPECT_EQ(1, params.count("LETSWOF:L_1OW"));
|
||||
EXPECT_EQ(1, params.count("LETSGOF:KRG1"));
|
||||
EXPECT_EQ(1, params.count("LOG10_MULTFLT:MULTFLT_F1"));
|
||||
EXPECT_EQ(1U, params.count("LETSWOF:L_1OW"));
|
||||
EXPECT_EQ(1U, params.count("LETSGOF:KRG1"));
|
||||
EXPECT_EQ(1U, params.count("LOG10_MULTFLT:MULTFLT_F1"));
|
||||
|
||||
EXPECT_EQ(1.83555, params["LETSWOF:L_1OW"]);
|
||||
EXPECT_EQ(0.97, params["LETSGOF:KRG1"]);
|
||||
|
Loading…
Reference in New Issue
Block a user