mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Linux fixes
This commit is contained in:
parent
63d401b6e6
commit
05a71b79c9
@ -19,8 +19,12 @@
|
||||
|
||||
#include "RimWellLogExtractionCurveImpl.h"
|
||||
|
||||
#include "cvfBase.h"
|
||||
#include "cvfMath.h"
|
||||
#include "cvfAssert.h"
|
||||
|
||||
#include <cmath> // Needed for HUGE_VAL on Linux
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -99,7 +103,7 @@ void RimWellLogExtractionCurveImpl::validDepthValuesIntervals(const std::vector<
|
||||
size_t intStartIdx = startIdx;
|
||||
for (size_t vIdx = startIdx + 1; vIdx < stopIdx; vIdx += 2)
|
||||
{
|
||||
if (abs(depthValues[vIdx + 1] - depthValues[vIdx]) > depthDiffTolerance)
|
||||
if (cvf::Math::abs(depthValues[vIdx + 1] - depthValues[vIdx]) > depthDiffTolerance)
|
||||
{
|
||||
intervals.push_back(std::make_pair(intStartIdx, vIdx));
|
||||
intStartIdx = vIdx + 1;
|
||||
|
@ -20,6 +20,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <cstddef>
|
||||
|
||||
|
||||
//==================================================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user