From d46d191a8112b4f07285a304996e4d3138747559 Mon Sep 17 00:00:00 2001 From: Kjetil Olsen Lye Date: Wed, 9 May 2012 13:58:25 +0200 Subject: [PATCH] Introduced a hack to make it possible to test reinjection without supporting surface rate controls. --- opm/core/WellsGroup.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/opm/core/WellsGroup.cpp b/opm/core/WellsGroup.cpp index 5dcac2281..7b54e62fa 100644 --- a/opm/core/WellsGroup.cpp +++ b/opm/core/WellsGroup.cpp @@ -576,9 +576,15 @@ namespace Opm // Note, we do _not_ want to call the applyProdGroupControl in this object, // as that would check if we're under group control, something we're not. const double children_guide_rate = children_[i]->injectionGuideRate(true); +#ifdef DIRTY_WELLCTRL_HACK + children_[i]->applyInjGroupControl(InjectionSpecification::RESV, + (children_guide_rate / my_guide_rate) * total_produced * injSpec().reinjection_fraction_target_, + false); +#else children_[i]->applyInjGroupControl(InjectionSpecification::RATE, (children_guide_rate / my_guide_rate) * total_produced * injSpec().reinjection_fraction_target_, false); +#endif } } }