Limit demand deficit to be >= 0

This commit is contained in:
Lew Rossman
2025-03-19 18:37:34 -04:00
parent 06284bb218
commit fff984d6be
2 changed files with 2 additions and 1 deletions

View File

@@ -702,7 +702,7 @@ int pdaconverged(Project *pr)
{
Hydraul *hyd = &pr->hydraul;
const double QTOL = 0.0001; // 0.0001 cfs ~= 0.005 gpm ~= 0.2 lpm)
const double QTOL = 0.0001; // 0.0001 cfs ~= 0.05 gpm ~= 0.2 lpm)
int i, converged = 1;
double totalDemand = 0.0, totalReduction = 0.0;