Merge pull request #3 from yuniersoad/patch-1
Fixing conversion error in ENgetnodevalue EN_TANKDIAM
This commit is contained in:
@@ -1460,7 +1460,7 @@ int DLLEXPORT ENgetnodevalue(int index, int code, float *value)
|
||||
v = 0.0;
|
||||
if ( index > Njuncs )
|
||||
{
|
||||
v = 4.0/PI*sqrt(Tank[index-Njuncs].A)*Ucf[ELEV];
|
||||
v = sqrt(4.0/PI*Tank[index-Njuncs].A)*Ucf[ELEV];
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user