mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix build warnings in RiaInterpolationTools.cpp
This commit is contained in:
parent
e4677004af
commit
e83a122bfd
@ -33,7 +33,7 @@ bool almostEqual( double a, double b, double maxRelDiff = std::numeric_limits<do
|
||||
double fabsa = std::fabs( a );
|
||||
double fabsb = std::fabs( b );
|
||||
// Find the largest
|
||||
float largest = ( fabsb > fabsa ) ? fabsb : fabsa;
|
||||
double largest = ( fabsb > fabsa ) ? fabsb : fabsa;
|
||||
return ( diff <= largest * maxRelDiff );
|
||||
}
|
||||
|
||||
@ -194,7 +194,7 @@ void RiaInterpolationTools::interpolateMissingValues( const std::vector<double>&
|
||||
{
|
||||
// The last value is inf: extrapolate from two last data points
|
||||
int prevSetIndex2 = findPreviousDataPoint( y, prevSetIndex - 1 );
|
||||
index = extrapolateRange( index, y.size(), prevSetIndex2, prevSetIndex, x, y );
|
||||
index = extrapolateRange( index, (int) y.size(), prevSetIndex2, prevSetIndex, x, y );
|
||||
}
|
||||
else if ( nextSetIndex != static_cast<int>( y.size() ) )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user