From a103c59f3fbe878ac4318d7e617ee6fe076f0df4 Mon Sep 17 00:00:00 2001 From: babrodtk Date: Tue, 11 Aug 2015 16:26:56 +0200 Subject: [PATCH] Bugfix with THP for injection wells --- opm/core/wells/WellsManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/core/wells/WellsManager.cpp b/opm/core/wells/WellsManager.cpp index 3ad682e0..6b754450 100644 --- a/opm/core/wells/WellsManager.cpp +++ b/opm/core/wells/WellsManager.cpp @@ -493,9 +493,9 @@ namespace Opm } if (ok && injectionProperties.hasInjectionControl(WellInjector::THP)) { + control_pos[WellsManagerDetail::InjectionControl::THP] = well_controls_get_num(w_->ctrls[well_index]); const double thp_limit = injectionProperties.THPLimit; const int vfp_number = injectionProperties.VFPTableNumber; - control_pos[WellsManagerDetail::ProductionControl::THP] = well_controls_get_num(w_->ctrls[well_index]); ok = append_well_controls(THP, thp_limit, -std::numeric_limits::max(),