fixup from PR comments

This commit is contained in:
Tor Harald Sandve
2022-10-17 15:22:04 +02:00
parent 9538db85b1
commit 7b90d35f21
7 changed files with 27 additions and 24 deletions

View File

@@ -573,14 +573,13 @@ updateThp(WellState& well_state,
return;
}
// For THP controled wells, we know the thp value
bool thp_controled = baseif_.isInjector() ? ws.injection_cmode == Well::InjectorCMode::THP:
// For THP controlled wells, we know the thp value
bool thp_controlled = baseif_.isInjector() ? ws.injection_cmode == Well::InjectorCMode::THP:
ws.production_cmode == Well::ProducerCMode::THP;
if (thp_controled) {
if (thp_controlled) {
return;
}
// the well is under other control types, we calculate the thp based on bhp and rates
std::vector<double> rates(3, 0.0);