mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Remove "set-but-unused" variables (generates warnings on gcc 7).
This commit is contained in:
@@ -83,7 +83,6 @@ double RigGeoMechBoreHoleStressCalculator::solveBisection( double minPw, double
|
||||
minPw = largestNegativeValue.first;
|
||||
double minPwFuncVal = largestNegativeValue.second;
|
||||
maxPw = smallestPositiveValue.first;
|
||||
double maxPwFuncVal = smallestPositiveValue.second;
|
||||
|
||||
double range = std::abs( maxPw - minPw );
|
||||
|
||||
@@ -94,8 +93,7 @@ double RigGeoMechBoreHoleStressCalculator::solveBisection( double minPw, double
|
||||
double midPwFuncVal = ( this->*fn )( midPw, &theta );
|
||||
if ( midPwFuncVal * minPwFuncVal < 0.0 )
|
||||
{
|
||||
maxPw = midPw;
|
||||
maxPwFuncVal = midPwFuncVal;
|
||||
maxPw = midPw;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -126,7 +126,6 @@ RigTofWellDistributionCalculator::RigTofWellDistributionCalculator( RimEclipseRe
|
||||
|
||||
for ( const auto& mapElement : tofToCellIndicesMap )
|
||||
{
|
||||
const double tofValue = mapElement.first;
|
||||
const std::vector<size_t>& cellIndicesArr = mapElement.second;
|
||||
|
||||
for ( size_t cellIndex : cellIndicesArr )
|
||||
|
||||
@@ -278,8 +278,6 @@ double RigWellPathGeometryTools::solveForX( const QwtSpline& spline, double minX
|
||||
double c = b - ( b - a ) / phi;
|
||||
double d = a + ( b - a ) / phi;
|
||||
|
||||
double fa = spline.value( a ) - y;
|
||||
double fb = spline.value( b ) - y;
|
||||
double fc = spline.value( c ) - y;
|
||||
double fd = spline.value( d ) - y;
|
||||
|
||||
@@ -293,7 +291,6 @@ double RigWellPathGeometryTools::solveForX( const QwtSpline& spline, double minX
|
||||
if ( std::fabs( fc ) < std::fabs( fd ) )
|
||||
{
|
||||
b = d;
|
||||
fb = fd;
|
||||
d = c;
|
||||
fd = fc;
|
||||
c = b - ( b - a ) / phi;
|
||||
@@ -302,7 +299,6 @@ double RigWellPathGeometryTools::solveForX( const QwtSpline& spline, double minX
|
||||
else
|
||||
{
|
||||
a = c;
|
||||
fa = fc;
|
||||
c = d;
|
||||
fc = fd;
|
||||
d = a + ( b - a ) / phi;
|
||||
|
||||
Reference in New Issue
Block a user