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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user