From 47b474ff4caf58272f2016536e1714ca48460efc Mon Sep 17 00:00:00 2001 From: Lew Rossman Date: Sat, 19 Apr 2025 14:14:58 -0400 Subject: [PATCH] Update hydraul.c --- src/hydraul.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/hydraul.c b/src/hydraul.c index 0ae1dbc..35d6d09 100755 --- a/src/hydraul.c +++ b/src/hydraul.c @@ -128,7 +128,11 @@ void inithyd(Project *pr, int initflag) hyd->LinkSetting[i] = link->InitSetting; // Set runtime setting of non-ACTIVE valves to "MISSING" - if (link->Type >= PRV && link->InitStatus != ACTIVE) link->Kc = MISSING; + if (link->Type >= PRV && link->InitStatus != ACTIVE) + { + link->Kc = MISSING; + hyd->LinkSetting[i] = MISSING; + } // Compute flow resistance resistcoeff(pr, i);