mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Removed unused variable
Removed an unused variable and fixed a bug that caused a warning.
This commit is contained in:
parent
8843e8af66
commit
7d68261d0b
@ -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<double> alq = this->well_.isProducer() ? std::optional<double>(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<class EvalWell>
|
||||
|
Loading…
Reference in New Issue
Block a user