Fix refactoring error in hydcoeffs.c

This commit is contained in:
Lew Rossman
2024-07-02 20:19:45 -04:00
parent 5b2b88cee4
commit 6089b93a51
2 changed files with 42 additions and 35 deletions

View File

@@ -575,7 +575,7 @@ void demandcoeffs(Project *pr)
for (i = 1; i <= net->Njuncs; i++)
{
// Skip junctions with non-positive demands
if (hyd->NodeDemand[i] <= 0.0) continue;
if (hyd->FullDemand[i] <= 0.0) continue;
// Find head loss for demand outflow at node's elevation
demandheadloss(pr, i, dp, n, &hloss, &hgrad);