Update leakage.c
Adjustment to reported pipe leakage when one node is fixed grade was corrected.
This commit is contained in:
@@ -309,8 +309,8 @@ double findlinkleakage(Project *pr, int i)
|
||||
}
|
||||
|
||||
// Adjust leakage flows to account for one node being fixed grade
|
||||
if (q2 == 0.0) q1 *= 2.0;
|
||||
if (q1 == 0.0) q2 *= 2.0;
|
||||
if (n2 > net->Njuncs) q1 *= 2.0;
|
||||
if (n1 > net->Njuncs) q2 *= 2.0;
|
||||
return q1 + q2;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user