Commit Graph

1505 Commits

Author SHA1 Message Date
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
Lew Rossman
8d8ccafad6 Merge pull request #706 from OpenWaterAnalytics/dev-emitter-backflow
Add emitter backflow option
2023-02-08 15:16:05 -05:00
Lew Rossman
61b03b8539 Updating the docs 2023-02-07 22:59:18 -05:00
Lew Rossman
847fa82139 Add emitter backflow option
Adds a global hydraulic option to allow backflow or not through emitter elements. To maintain backward compatibility the default is YES.
2023-02-05 15:16:20 -05:00
Lew Rossman
9814564e29 Merge pull request #705 from OpenWaterAnalytics/dev-tank-fix
Revise status test for full/empty tanks
2023-02-05 12:29:01 -05:00
Lew Rossman
869e441fe8 Revise status test for full/empty tanks
Simplifies status check for links connected to full/empty tanks and now includes case where link connects two tanks.
2023-02-03 11:29:05 -05:00
Lew Rossman
4986ec83e7 Merge pull request #704 from OpenWaterAnalytics/dev_string_literals
Allows string literals as arguments in C++ clients
2023-02-01 19:10:57 -05:00
Lew Rossman
2f8561632f Allows string literals as arguments in C++ clients
See issue #651. Also addresses issue #602.
2023-01-29 12:34:58 -05:00
Lew Rossman
245f8f6562 Merge pull request #702 from OpenWaterAnalytics/dev-read-coords
Ignore errors in coords. read from file
2023-01-29 12:19:04 -05:00
Lew Rossman
f60102105a Ignore errors in coords. read from file
Ignores errors when reading node & link vertex coordinates from an input file. Also when saving a project to an input file, the [DEMANDS] section only includes non-zero demands.
See issues #603 and #174 .
2023-01-26 12:50:26 -05:00
Sam Hatchett
7dab25e867 Merge pull request #688 from OpenWaterAnalytics/681-request-additional-api-function-for-getting-finer-grained-time-step-information
adds an API function to get information about upcoming events
2023-01-20 09:47:17 -05:00
Sam Hatchett
57ae3eeab8 Update ReleaseNotes2_3.md 2023-01-19 14:16:50 -05:00
Elad Salomons
e2df3e87ac Adding support for VB
Also supporting C89 compiler.
2023-01-19 20:45:30 +02:00
Sam Hatchett
2705f8adc1 Merge branch 'dev' into 681-request-additional-api-function-for-getting-finer-grained-time-step-information 2023-01-19 11:52:18 -05:00
Sam Hatchett
736f5ebdd4 updates function signatures to use int-casted enum 2023-01-19 09:50:50 -05:00
Sam Hatchett
3a0cc012b5 Merge pull request #689 from OpenWaterAnalytics/683-request-better-logging-functionality
adds client callback API function
2023-01-19 09:02:02 -05:00
Sam Hatchett
30c511ca78 Merge branch 'dev' into 683-request-better-logging-functionality 2023-01-19 09:01:43 -05:00
Elad Salomons
bf6fcc42b4 Merge pull request #701 from Mariosmsk/dev
Add a cron schedule in actions per month to create artifacts
2023-01-19 07:49:22 +02:00
Marios S. Kyriakou
86085d4550 Add a cron schedule in actions per month to create artifacts without any commit
at 2023-02-01 00:00:00
then at 2023-03-01 00:00:00
then at 2023-04-01 00:00:00
then at 2023-05-01 00:00:00
then at 2023-06-01 00:00:00
...

Co-Authored-By: Elad Salomons <selad@optiwater.com>
2023-01-17 00:32:39 +02:00
Lew Rossman
6acce3f701 Merge pull request #699 from OpenWaterAnalytics/dev-pcv-valve
New positional control valve added
2022-08-23 08:55:50 -04:00
Lew Rossman
5b3d75cc0d Updated language binding files added. 2022-08-16 13:13:39 -04:00
Lew Rossman
6db17193f5 New positional control valve added 2022-08-16 11:47:44 -04:00
Elad Salomons
ec4d1f5197 Merge pull request #698 from eladsal/update-readme-tests
Update readme badges
2022-08-16 08:01:00 +03:00
Elad Salomons
3485551f22 Create workflow build bagges
As suggested in #690
2022-08-14 09:06:44 +03:00
Elad Salomons
3287cc3b84 Remove travis-ci.org badge
Closes #693
2022-08-14 09:02:20 +03:00
Sam Hatchett
c766d4eceb Merge pull request #687 from OpenWaterAnalytics/680-add-support-for-conan-dependency-manager
Creates conanfile.py
2022-08-12 13:25:28 -04:00
Lew Rossman
a68595264b Merge pull request #696 from OpenWaterAnalytics/dev-fcv-fix
Fixes Possible Incorrect Solution for Flow Control Valves
2022-08-11 10:41:39 -04:00
Elad Salomons
68660d8235 Merge pull request #691 from Mariosmsk/workflows
Thank you @Mariosmsk . This closes #690
2022-08-10 08:04:22 +03:00
Lew Rossman
6ccddb811d Update hydstatus.c 2022-08-08 18:37:07 -04:00
Lew Rossman
2d783041a4 Fix for FCV problem
This update prevents a solution where the computed loss coefficient for a FCV at its flow setting would be less than the user supplied fully opened coefficient.
2022-08-08 18:08:45 -04:00
Lew Rossman
bed2fdca21 Merge pull request #694 from OpenWaterAnalytics/dev-prv-psv-fix
Preserves network connectivity across an active PSV
2022-08-08 14:31:12 -04:00
Sam Hatchett
9b3007ff55 adds projectless function declarations
and fixes non-camelcase convention
2022-08-08 12:02:22 -04:00
Sam Hatchett
b139684164 fixes non-camelcase convention
and adds rich corinthian vintage-style (projectless) function declarations
2022-08-08 11:58:09 -04:00
Lew Rossman
79b4fa45a1 Update hydcoeffs.c
Only an Active PSV needs to preserve connectivity.
2022-08-05 16:59:32 -04:00
Lew Rossman
93389ad1e4 Fix for PRV directly downstream of a PSV 2022-08-03 19:52:01 -04:00
Marios S. Kyriakou
0bf09b525f build libs / win & linux 2022-07-28 23:37:10 +03:00
Sam Hatchett
41887e9016 adds client callback API function 2022-07-27 16:37:49 -04:00
Sam Hatchett
5f8ee49fd6 adds an API function to get information about upcoming events 2022-07-27 14:18:50 -04:00
Sam Hatchett
92cef4692c Create conanfile.py 2022-07-27 14:01:45 -04:00
Lew Rossman
44ad2488e4 Merge pull request #685 from OpenWaterAnalytics/dev-release_notes_update
Update ReleaseNotes2_3.md
2022-06-29 11:30:01 -04:00
Lew Rossman
0b1e5408bf Update ReleaseNotes2_3.md 2022-06-27 13:00:02 -04:00
Sam Hatchett
c07674e95b Update before-test.cmd 2022-06-14 10:28:24 -04:00
Sam Hatchett
f3b8e9db18 Update before-test.cmd 2022-06-14 10:22:43 -04:00
Sam Hatchett
13b5da5207 attempting hotfix for appveyor issues.
curl needs to follow the redirect
2022-06-14 10:07:50 -04:00
Robert Janke
09b44add36 Update AUTHORS file - organize by release and order alphabetically (#573)
* Update LICENSE

* Update AUTHORS

Co-authored-by: Sam Hatchett <samhatchett@gmail.com>
2022-06-14 09:38:37 -04:00
Sam Hatchett
c500cddd6d fixes issue where a string position an underflow (#676)
under some circumstances, like certain input lines that have long comments, the code here can cause an underflow in size_t which casts to a very large integer during comparison and results in the number of tokens being over-reported (max of 40). Most of these tokens are of course garbage. Changing this `len` variable to an integer permits it to be less than zero, thus allowing an exit from the `while` at L665.
2022-06-14 09:36:56 -04:00
Lew Rossman
4d66af19a5 Merge pull request #669 from OpenWaterAnalytics/dev-pump-fix
Modify const. HP pump
2022-04-05 09:15:18 -04:00
Elad Salomons
d554999c2a Merge pull request #670 from lbutler/doc-toolkit-usage-fix
Bug in example code for detecting error conditions

doxygen and html updates to follow.
2022-04-05 08:36:01 +03:00
Elad Salomons
dc7e9f3142 Merge pull request #672 from lbutler/dev-gpv-control-fix
Fix for GPV controls in EN_saveinpfile

Thank you @lbutler , for GPV the setting golds the head curve index.
2022-04-05 07:27:54 +03: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