Merge pull request #5432 from vkip/gconprod_item11to13

Allow GCONPROD item 11-13 to actually take effect.
This commit is contained in:
Kai Bao 2024-06-24 18:59:29 +02:00 committed by GitHub
commit f99956c452
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -483,7 +483,7 @@ actionOnBrokenConstraints(const Group& group,
std::string ss;
switch (group_limit_action.allRates) {
case Group::ExceedAction::NONE: {
if (oldControl != newControl && oldControl != Group::ProductionCMode::NONE) {
if (oldControl != newControl) {
if ((group_limit_action.water == Group::ExceedAction::RATE &&
newControl == Group::ProductionCMode::WRAT) ||
(group_limit_action.gas == Group::ExceedAction::RATE &&