Update INTEHEAD[51] value based on presence of GCONPROD / GCONINJE
This commit is contained in:
parent
2374ae2127
commit
08f8a381b0
@ -106,16 +106,22 @@ namespace {
|
|||||||
if (report_step == std::size_t{0}) {
|
if (report_step == std::size_t{0}) {
|
||||||
return gctrl;
|
return gctrl;
|
||||||
}
|
}
|
||||||
|
bool have_gconprod = false;
|
||||||
|
bool have_gconinje = false;
|
||||||
|
|
||||||
for (const auto& group_name : sched.groupNames(lookup_step)) {
|
for (const auto& group_name : sched.groupNames(lookup_step)) {
|
||||||
const auto& group = sched.getGroup(group_name, lookup_step);
|
const auto& group = sched.getGroup(group_name, lookup_step);
|
||||||
if (group.isProductionGroup()) {
|
if (group.isProductionGroup()) {
|
||||||
gctrl = 1;
|
have_gconprod = true;
|
||||||
}
|
}
|
||||||
if (group.isInjectionGroup()) {
|
if (group.isInjectionGroup()) {
|
||||||
gctrl = 2;
|
have_gconinje = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (have_gconinje)
|
||||||
|
gctrl = 2;
|
||||||
|
else if (have_gconprod)
|
||||||
|
gctrl = 1;
|
||||||
|
|
||||||
// Index for group control
|
// Index for group control
|
||||||
return gctrl;
|
return gctrl;
|
||||||
|
Loading…
Reference in New Issue
Block a user