Introduced a hack to make it possible to test reinjection without supporting surface rate controls.

This commit is contained in:
Kjetil Olsen Lye 2012-05-09 13:58:25 +02:00
parent 12e4125081
commit d46d191a81

View File

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