Remove line comments with release number
This commit is contained in:
@@ -486,7 +486,7 @@ void demandheadloss(Project *pr, int i, double dp, double n,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Use power head loss function for demand less than full
|
// Use power head loss function for demand less than full
|
||||||
else if (r <= 1.0) //(2.2.1)
|
else if (r <= 1.0)
|
||||||
{
|
{
|
||||||
*hgrad = n * dp * pow(r, n - 1.0) / dfull;
|
*hgrad = n * dp * pow(r, n - 1.0) / dfull;
|
||||||
// ... use linear function for very small gradient
|
// ... use linear function for very small gradient
|
||||||
|
|||||||
@@ -554,7 +554,7 @@ void newdemandflows(Project *pr, Hydbalance *hbal, double *qsum, double *dqsum)
|
|||||||
dq = (hloss - dh) / hgrad;
|
dq = (hloss - dh) / hgrad;
|
||||||
dq *= hyd->RelaxFactor;
|
dq *= hyd->RelaxFactor;
|
||||||
|
|
||||||
// Prevent a flow change greater than full demand //(2.2.1)
|
// Prevent a flow change greater than full demand
|
||||||
if (fabs(dq) > hyd->NodeDemand[i])
|
if (fabs(dq) > hyd->NodeDemand[i])
|
||||||
dq = 0.5 * SGN(dq) * hyd->NodeDemand[i];
|
dq = 0.5 * SGN(dq) * hyd->NodeDemand[i];
|
||||||
hyd->DemandFlow[i] -= dq;
|
hyd->DemandFlow[i] -= dq;
|
||||||
|
|||||||
Reference in New Issue
Block a user