Not return from the WellNode:applyInjGroupControl

unless we prevent the well from group control with keyword WGRUPCON.
This commit is contained in:
Kai Bao 2016-09-28 13:29:54 +02:00
parent c5958da6c9
commit 3bdf0eae11

View File

@ -813,10 +813,13 @@ namespace Opm
const bool forced) const bool forced)
{ {
// Not changing if we're not forced to change // Not changing if we're not forced to change
if (!forced // It should be the well will under group control, if we prevent the well from group control
&& (injSpec().control_mode_ != InjectionSpecification::GRUP && injSpec().control_mode_ != InjectionSpecification::NONE)) { // with keyword WGRUPCON.
return; // It is just current undertstanding, while further change in the understanding will be possible.
} // if (!forced
// && (injSpec().control_mode_ != InjectionSpecification::GRUP && injSpec().control_mode_ != InjectionSpecification::NONE)) {
// return;
// }
if (wells_->type[self_index_] != INJECTOR) { if (wells_->type[self_index_] != INJECTOR) {
assert(target == 0.0); assert(target == 0.0);
return; return;