Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes regression related to tank fill/empty events #803

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

samhatchett
Copy link
Member

In the affected code, q is really just a proxy for flow direction. And in cases where a tank has filled in a previous step, its connected link will have been TEMPCLOSED making the flow a very small (positive or negative) number. When this occurs, the link actually never opens even if dH says that the tank should be draining.

In the affected code, q is really just a proxy for flow direction. And in cases where a tank has filled in a previous step, its connected link will have been TEMPCLOSED making the flow pretty small. When this occurs, the link actually never opens even if dH says that the tank should be draining.
@samhatchett samhatchett requested a review from eladsal June 24, 2024 17:09
@eladsal
Copy link
Member

eladsal commented Jun 24, 2024

@samhatchett, this runs well, thank you!

Would you mind adding to this commit a small fix introduced a little time ago which breaks compilation with old compilers and keeps our programming conventions of declaring variables? In epanet.c lines 2372 and 3943. Just move the declaration of i before the for loop. If not, I can make another PR. Thanks!

@samhatchett samhatchett merged commit 94d136b into dev Jun 24, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants