Instead of changing block out status checking routine, water quality module considers pipe 'closed' status in the routine bypassing flow information just like tank volume changes.
This commit is contained in:
@@ -161,8 +161,9 @@ int savehyd(long *htime)
|
||||
/* Force flow in closed links to be zero then save flows */
|
||||
for (i=1; i<=Nlinks; i++)
|
||||
{
|
||||
//if (S[i] <= CLOSED) x[i] = 0.0f;
|
||||
/*else*/ x[i] = (REAL4)Q[i];
|
||||
if (S[i] <= CLOSED) x[i] = 0.0f;
|
||||
else x[i] = (REAL4)Q[i];
|
||||
|
||||
}
|
||||
fwrite(x+1,sizeof(REAL4),Nlinks,HydFile);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user