Fix for GPV controls in EN_saveinpfile
EN_saveinpfile was incorrectly saving the index of the GPV head loss curve inside of a simple control instead of the control status
This commit is contained in:
@@ -425,7 +425,7 @@ int saveinpfile(Project *pr, const char *fname)
|
|||||||
link = &net->Link[j];
|
link = &net->Link[j];
|
||||||
|
|
||||||
// Get text of control's link status/setting
|
// Get text of control's link status/setting
|
||||||
if (control->Setting == MISSING)
|
if (control->Setting == MISSING || link->Type == GPV)
|
||||||
{
|
{
|
||||||
sprintf(s, " LINK %s %s ", link->ID, StatTxt[control->Status]);
|
sprintf(s, " LINK %s %s ", link->ID, StatTxt[control->Status]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user