mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Linux compile fixes
This commit is contained in:
parent
1e9e6d8541
commit
43a1f4dbbe
@ -20,7 +20,7 @@
|
|||||||
#include "RimSummaryCurve.h"
|
#include "RimSummaryCurve.h"
|
||||||
#include "cvfVector3.h"
|
#include "cvfVector3.h"
|
||||||
|
|
||||||
|
#include <cmath>
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
@ -212,7 +212,7 @@ cvf::Color3f RimCurveLookCalculator::gradeColor(const cvf::Color3f& color, float
|
|||||||
targetC = cvf::Vec3f(1, 1, 1);
|
targetC = cvf::Vec3f(1, 1, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
cvf::Vec3f newColor = fabs(factor) * (targetC - orgC) + orgC;
|
cvf::Vec3f newColor = ((float)fabs(factor)) * (targetC - orgC) + orgC;
|
||||||
|
|
||||||
return cvf::Color3f(newColor[0], newColor[1], newColor[2]);
|
return cvf::Color3f(newColor[0], newColor[1], newColor[2]);
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
//
|
//
|
||||||
/////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
#pragma once
|
#pragma once
|
||||||
|
#include "cvfBase.h"
|
||||||
#include "cvfColor3.h"
|
#include "cvfColor3.h"
|
||||||
#include <set>
|
#include <set>
|
||||||
#include "RifEclipseSummaryAddress.h"
|
#include "RifEclipseSummaryAddress.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user