From 53c1195b640625e6bb4374c647fbe65ffa8ac5be Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Thu, 3 Sep 2015 11:29:12 +0200 Subject: [PATCH] Rename variable from i to injector --- opm/autodiff/SimulatorBase_impl.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opm/autodiff/SimulatorBase_impl.hpp b/opm/autodiff/SimulatorBase_impl.hpp index b76406d98..3fc4ae020 100644 --- a/opm/autodiff/SimulatorBase_impl.hpp +++ b/opm/autodiff/SimulatorBase_impl.hpp @@ -470,14 +470,14 @@ namespace Opm WellMap::const_iterator i = wmap.find(wells->name[w]); if (i != wmap.end()) { WellConstPtr wp = i->second; - const WellInjectionProperties& i = wp->getInjectionProperties(step); - if (!i.predictionMode) { + const WellInjectionProperties& injector = wp->getInjectionProperties(step); + if (!injector.predictionMode) { //History matching WCONINJEH static const double invalid_alq = -std::numeric_limits::max(); static const int invalid_vfp = -std::numeric_limits::max(); // For WCONINJEH the BHP limit is set to a large number // or a value specified using WELTARG - double bhp_limit = (i.BHPLimit > 0) ? i.BHPLimit : std::numeric_limits::max(); + double bhp_limit = (injector.BHPLimit > 0) ? injector.BHPLimit : std::numeric_limits::max(); const int ok_bhp = well_controls_add_new(BHP, bhp_limit, invalid_alq, invalid_vfp,