From 7d68261d0b87df44db59f6db160902b911cc281c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20H=C3=A6gland?= Date: Thu, 1 Jun 2023 11:18:56 +0200 Subject: [PATCH] Removed unused variable Removed an unused variable and fixed a bug that caused a warning. --- opm/simulators/wells/WellBhpThpCalculator.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opm/simulators/wells/WellBhpThpCalculator.cpp b/opm/simulators/wells/WellBhpThpCalculator.cpp index ead292fa8..fad15f5a5 100644 --- a/opm/simulators/wells/WellBhpThpCalculator.cpp +++ b/opm/simulators/wells/WellBhpThpCalculator.cpp @@ -166,7 +166,6 @@ findThpFromBhpIteratively( bool do_iterate = true; int it = 1; int max_iterations = 50; - bool debug = true; while(do_iterate) { if (it > max_iterations) { break; @@ -323,7 +322,7 @@ void WellBhpThpCalculator::updateThp(const double rho, } const std::optional alq = this->well_.isProducer() ? std::optional(alq_value()) : std::nullopt; const double thp_limit = well_.getTHPConstraint(summary_state); - ws.thp = this->calculateThpFromBhp(rates, ws.bhp, rho, alq_value(), thp_limit, deferred_logger); + ws.thp = this->calculateThpFromBhp(rates, ws.bhp, rho, alq, thp_limit, deferred_logger); } template