Merge pull request #604 from Mariosmsk/dev
Net1.inp have 0 MinorLoss / GUI accepts values zero for MINORLOSS
This commit is contained in:
@@ -3862,7 +3862,7 @@ int DLLEXPORT EN_setlinkvalue(EN_Project p, int index, int property, double valu
|
||||
case EN_MINORLOSS:
|
||||
if (Link[index].Type != PUMP)
|
||||
{
|
||||
if (value <= 0.0) return 211;
|
||||
if (value < 0.0) return 211;
|
||||
Link[index].Km = 0.02517 * value / SQR(Link[index].Diam) /
|
||||
SQR(Link[index].Diam);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user