From 9c0b57618228958aa5537772abf907aeea97d371 Mon Sep 17 00:00:00 2001 From: Luke Butler Date: Wed, 30 Mar 2022 23:13:48 -0400 Subject: [PATCH] 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 --- src/inpfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inpfile.c b/src/inpfile.c index 91c9fc9..bc5d4e6 100644 --- a/src/inpfile.c +++ b/src/inpfile.c @@ -425,7 +425,7 @@ int saveinpfile(Project *pr, const char *fname) link = &net->Link[j]; // 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]); }