Reverted to legacy Darcy-Weisbach method

This commit is contained in:
Lew Rossman
2018-06-21 12:05:51 -04:00
parent 92e10a18b0
commit f5a1b9e518
2 changed files with 82 additions and 73 deletions

View File

@@ -981,6 +981,7 @@ void checkhydbalance(EN_Project *pr, Hydbalance *hbal)
hbal->maxheaderror = 0.0;
hbal->maxheadlink = 1;
for (k = 1; k <= net->Nlinks; k++) {
if (hyd->LinkStatus[k] <= CLOSED) continue;
hlosscoeff(pr, k);
if (sol->P[k] == 0.0) continue;
link = &net->Link[k];