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 } } }