Update input3.c

This commit is contained in:
Lew Rossman
2025-04-19 13:44:59 -04:00
parent 30c20770b3
commit a9b5cc7124

View File

@@ -2248,6 +2248,8 @@ void changestatus(Network *net, int j, StatusType status, double y)
status = OPEN;
if (y == 0.0) status = CLOSED;
}
else if (status == OPEN) link->Kc = 1.0;
else if (status == CLOSED) link->Kc = 0.0;
link->InitStatus = status;
link->InitSetting = link->Kc;
}