Fixed missing includes on Linux

This commit is contained in:
Magne Sjaastad
2017-03-28 09:47:06 +02:00
parent dec65d0af4
commit a6ce3c9ef4
4 changed files with 25 additions and 8 deletions

View File

@@ -29,6 +29,8 @@
#include "RigFlowDiagResultFrames.h"
#include "RigStatisticsDataCache.h"
#include <cmath> // Needed for HUGE_VAL on Linux
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
@@ -673,3 +675,12 @@ std::vector<int> RigFlowDiagResults::calculatedTimeSteps()
return timestepIndices;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RigFlowDiagResults::FlowCharacteristicsResultFrame::FlowCharacteristicsResultFrame()
: m_lorenzCoefficient(HUGE_VAL)
{
}

View File

@@ -19,6 +19,10 @@
#include "RigFlowDiagResultAddress.h"
#include "RimFlowDiagSolution.h"
#include "cafPdmPointer.h"
#include "cvfBase.h"
#include "cvfObject.h"
@@ -26,9 +30,6 @@
#include <map>
#include <string>
#include "cafPdmPointer.h"
#include "RimFlowDiagSolution.h"
class RigFlowDiagResultFrames;
class RigStatisticsDataCache;
class RigFlowDiagSolverInterface;
@@ -66,7 +67,7 @@ public:
struct FlowCharacteristicsResultFrame
{
FlowCharacteristicsResultFrame() : m_lorenzCoefficient(HUGE_VAL) {}
FlowCharacteristicsResultFrame();
using Curve = std::pair< std::vector<double>, std::vector<double> >;