Commit Graph

196 Commits

Author SHA1 Message Date
Luke Butler
843f1f4e37 Added support for cubic meters per second (CMS) 2023-02-20 09:43:42 -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
2f8561632f Allows string literals as arguments in C++ clients
See issue #651. Also addresses issue #602.
2023-01-29 12:34:58 -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
30c511ca78 Merge branch 'dev' into 683-request-better-logging-functionality 2023-01-19 09:01:43 -05: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
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
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
Lew Rossman
afda609223 Adds get/set for default demand pattern to toolkit 2022-01-14 08:50:33 -05:00
Sahand Tashak
1df2ea80b0 Method parameter types need to match definitions in epanet2.c 2021-07-20 22:58:43 -04:00
Elad Salomons
427fb03fe5 Add comments APIs to VB bas include file 2021-02-24 17:51:29 +02:00
Oscar Vegas Niño
474afda373 Correct comment
Change "for use with Visual Basic (C#)" to "for use with C#"
2020-09-30 16:52:00 +02:00
Oscar Vegas Niño
bc0ff50f71 Header file for C# 2020-09-30 15:12:11 +02:00
Sam Hatchett
80b30272cb modifies function declarations with unambiguous "out_" prefixes where output parameters are passed. This is a minor change that does not affect the API or any function implementations, but has great benefits to both readability and SWIG-wrapping. (#605)
Co-authored-by: Sam Hatchett <sam.hatchett@xyleminc.com>
2020-07-16 15:23:26 -04:00
Lew Rossman
67f7d8f76b Merge branch 'dev' into dev_2.3 2020-07-10 14:36:46 -04:00
Elad Salomons
e7ccf5281f Update include files 2020-05-22 21:43:14 +03:00
james uber
949022ed49 API access to incontrols() for information about node/link controls participation
allowing access to incontrols() for getting information about whether a node or link participates in a simple or rule-based control.
2020-05-22 11:45:52 -04:00
Elad Salomons
6ddea72ee9 Update epanet2.bas 2020-03-29 10:52:08 +03:00
Lew Rossman
80f9acfe4d Network building enhancements 2020-02-04 10:01:23 -05:00
Sam Hatchett
c0fe89ceb5 possessive vs contraction 2019-12-07 21:16:58 -05:00
Lew Rossman
bacedc87c9 Update epanet2.pas 2019-11-12 10:04:45 -05:00
Lew Rossman
6c54bb3a59 Adds error check to EN_setheadcurveindex
See issue #556 .
2019-11-09 09:36:10 -05:00
Lew Rossman
88d343dfb6 Updating the docs 2019-11-06 11:34:43 -05:00
Lew Rossman
9998466d20 Bug fix for EN_getrule
Fixes possible seg fault condition in EN_getrule. Also defines EN_MISSING as an API constant since it can be assigned internally to several variables that are retrievable by the API.
2019-11-05 10:09:21 -05:00
Lew Rossman
3bd4039d95 Bug fix for EN_setcurve
Adjusts params of any pump that uses the curve whose data is modified by EN_setcurve or EN_setcurvevalue (issue #550 ).
2019-11-02 11:17:25 -04:00
Lew Rossman
55e2879e2d Updates the docs 2019-10-30 15:11:20 -04:00
Lew Rossman
7aadc83ddf Adds link vertex get/set functions to the API 2019-10-29 16:33:40 -04:00
Lew Rossman
b640a8685c Adds EN_getresultindex function to the API
See issue #546 . Also fixes a small bug in project.c.
2019-10-26 11:25:09 -04:00
Lew Rossman
051519dca0 Another minor change to force another CI test 2019-07-22 12:22:48 -04:00
Lew Rossman
a89f339525 PDA fixes 2019-07-22 09:50:41 -04:00
Sam Hatchett
3fe11b98ee rethinking the python wrapper (#511)
* renames certain function parameter declarations and removes double pointer call from the deleteproject function

* deprecates conditonal compilation, removes python-specific headers and function renaming

* fixes tests and docs

* fixes test
2019-07-17 15:19:25 -04:00
Elad Salomons
5fafb4c314 Updating VB include files 2019-06-19 16:28:47 +03:00
Lew Rossman
9669742ab3 Adds tank overflow feature 2019-06-17 09:16:04 -04:00
Lew Rossman
2bbbf736b0 Numerous updates to project documentation 2019-05-30 13:28:32 -04:00
Lew Rossman
1c9ee7788b Documentation edits 2019-05-09 13:53:57 -04:00
Lew Rossman
365ab00dcb Refactors the API's demand editing functions 2019-05-09 10:26:40 -04:00
Michael Tryby
cf97cf8c9c Work in progress
code cleanup, addressed issue raised in review, and implemented EN_adddemand()
2019-04-23 17:52:11 -04:00
Lew Rossman
1583bea154 Return object index from EN_addnode and EN_addlink (issue #432)
Adds an output argument to EN_addnode and EN_addlink that returns the index of the newly added object.
Also refactors the validity check on object ID names.
2019-04-18 07:00:07 -04:00
Lew Rossman
1632508545 Fixed epanet2_enums.h 2019-04-03 21:23:46 -04:00
Lew Rossman
3e733f5a2a Add more analysis options to the API (issue #425) 2019-04-03 21:17:28 -04:00
Lew Rossman
83ffc1cfc7 Removed the EN_DEFDEMANDPAT option
See issue #429. Also allowed the EN_HEADLOSSFORM option to be changed if the solver is not active.
2019-04-03 10:25:37 -04:00
Lew Rossman
ca0ea0e17c Fixes bug in EN_getcurve 2019-04-03 00:58:40 -04:00
Lew Rossman
18f65eb8b0 Replace fixed-sized comment strings with dynamic strings 2019-03-17 19:54:51 -04:00
Michael Tryby
9b95dc4d16 Merge pull request #401 from michaeltryby/dev
Reorganizing unit tests and improving CI helper scripts on Travis
2019-03-06 17:43:44 -05:00
Lew Rossman
65a6c846b6 Change ENgetcoords & ENsetcoords args. to doubles 2019-03-02 12:26:49 -05:00