Commit Graph
14 Commits
Author SHA1 Message Date
Luke Butler cfc06321a6 Remove recursion in getclosedlink
The function getclosedlink in report.c uses recursion to find closed links when reporting on disconnections.

In very large networks, it’s possible for the recursion to exhaust the memory on the call stack which then causes EPANET to crash.

If a loop is used instead of recursion, EPANET will not crash with very large disconnections
2023-09-14 16:00:34 -04:00
Luke Butler 9cde32080a added function updateruleunits 2023-03-30 16:22:58 -04:00
Luke Butler 56c569b56f Update epanet2_enums.h
Fixed option and spacing
2023-03-16 19:53:25 -04:00
Luke Butler 6bc1efaf1c Check pressure units in metric are not set to PSI 2023-03-16 16:21:55 -04:00
Luke Butler 4beebbd470 Add EN_PRESS_UNITS to EN_getoption & EN_setoption 2023-03-16 16:13:49 -04:00
Luke Butler 40cd9acaf1 Update BUILDING.md to mention windows tutorial 2023-03-15 11:33:01 -04:00
Luke Butler 0e4c400355 Update ReleaseNote2_3.md
Commits between V2.2 and 2023-03-15 were reviewed and missed items in the release notes were added.

Fixes #716
2023-03-15 11:13:47 -04:00
Luke Butler f530f95835 Update BUILDING.md to include testing information 2023-03-09 14:34:39 -05:00
Luke Butler 8e68b77f61 Updated outfile to support cubic meters/sec 2023-02-20 10:24:11 -05:00
Luke Butler 09290da2cc Redefinition during test 2023-02-20 10:05:51 -05:00
Luke Butler 843f1f4e37 Added support for cubic meters per second (CMS) 2023-02-20 09:43:42 -05:00
Luke Butler 3856a6310d Fixes incorrect hour set with >9 input tokens
If you create a simple control with nine or more input tokens, the logic skips over assigning the hour variable and EPANET will activate the control at hour zero.
2023-02-15 14:46:39 -05:00
Luke Butler 9c0b576182 Fix for GPV controls in EN_saveinpfile
EN_saveinpfile was incorrectly saving the index of the GPV head loss curve inside of a simple control instead of the control status
2022-03-30 23:13:48 -04:00
Luke Butler 0945683bf9 Bug in example code for detecting error conditions
EN_geterror doesn't take in the project wrapper, and you need to include maxLen
2022-03-30 11:14:05 -04:00