Update hydraul.c

This commit is contained in:
Lew Rossman
2025-04-19 14:14:58 -04:00
parent a9b5cc7124
commit 47b474ff4c

View File

@@ -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);