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
365ab00dcb
Refactors the API's demand editing functions
2019-05-09 10:26:40 -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
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
Lew Rossman
65a6c846b6
Change ENgetcoords & ENsetcoords args. to doubles
2019-03-02 12:26:49 -05:00
Lew Rossman
fcbbbf9b2e
Adds new pattern, curve and reporting functions to API
2019-02-20 12:43:32 -05:00
Lew Rossman
3eb9a68783
Fixes win_build and VS/cmake build problems
2019-02-11 14:30:15 -05:00
Lew Rossman
36b78f28d3
New function clearreport added (see issue #383 )
...
The newly added `gettitle` and `settitle` functions were moved from the Reporting Functions section to the Project (formerly System) Functions section of epanet2.c and epanet.c.
2019-02-08 12:07:56 -05:00
Elad Salomons
140c95214e
Merge pull request #385 from eladsal/dev-title
...
Add new function to get and set title strings
2019-02-07 22:13:40 +02:00
Elad Salomons
ab62d3bb61
Add new function to get and set title strings
2019-02-06 11:45:48 +02:00
Michael Tryby
6a0151b9c7
Adding support for custom epanet_py build target
2019-02-04 14:28:32 -05:00
Lew Rossman
dd376692ad
Floating pt. args in thread-safe API changed to doubles (Issue #365 )
2019-01-09 15:14:10 -05:00
Lew Rossman
628fffc718
Added additional network building features ( #367 )
2019-01-02 10:33:58 -05:00
Michael Tryby
b0c7714d72
Keeping legacy api in epanet2.h epanet2.c and moving new api to epanet2_2.h epanet.c
2018-11-29 12:51:47 -05:00
Michael Tryby
be2ca0a9f6
Implmenting Toolkit API versioning
2018-11-29 11:57:51 -05:00
Lew Rossman
9a540cc0f4
Code cleanup
...
1. Added a standard header to each code module and removed obsolete comments.
2. Re-named several of the sub-structs in the project struct and re-arranged some of their contents.
3. Re-named _defaultModel to _defaultProject.
4. Removed the need to call EN_createproject and EN_deleteproject when working with the default project.
5. Made X & Y coords. part of Snode properties instead of a separate struct.
6. Moved the non-API functions in epanet.c into a new module named project.c.
7. Re-factored the quality module so that it uses the same nodal adjacency lists as the hydraulics solver.
8. Re-factored the sparse matrix module (smatrix.c) to be more memory efficient.
9. Restricted line lengths to < 90 columns.
10. Grouped the placement of functions in EPANET2.H and EPANET.C by category.
2018-11-27 14:22:06 -05:00
Lew Rossman
7443cea9d4
Fixes #172 (adjust controls when node/link is deleted) & EN_addrule added
...
- Deleting controls with node/link deletion made conditional.
- New EN_addrule function added along with a test file.
- Rule structures re-named & rules.c heavily modified.
- Issue with exceeding limit on number of temporary file names fixed.
- VB declaration and DEF files updated.
2018-11-07 23:09:47 -05:00
Lew Rossman
ee335ab077
Fixes bug #172 (adjust controls & rules when node/link added or deleted)
...
- Also adds new API function EN_deletecontrol
- Updates and re-arranges entries in the VBA and VB.Net headers
2018-10-31 11:32:01 -04:00
Lew Rossman
8514929622
Rewrite of EN_setlinktype function ( #305 )
...
- Complete rewrite of EN_setlinktype with link index argument passed by reference
- New unit test of EN_setlinktype added
- New function EN_setlinknodes added
2018-10-28 16:58:43 -04:00
Lew Rossman
e9161adbe6
Defined EN_MAXID & EN_MAXMSG limits in API header
2018-10-27 08:48:41 -04:00
Lew Rossman
76419e0b4c
Added EN_setnodeid and EN_setlinkid (Issue #306 )
2018-10-17 09:05:16 -04:00
Lew Rossman
7c021cf533
Fixed water quality mass balance issue ( #160 )
2018-10-09 12:53:20 -04:00
Elad Salomons
4848f692f6
Merge pull request #296 from eladsal/dev-dem-cat
...
Add demand names get\set APIs
Close #294
2018-10-01 10:47:40 +03:00
Elad Salomons
c1c80da667
Add APIs to get\set demand categories names
2018-09-26 11:15:37 +03:00
Marios Kyriakou
982ff903e3
add option EN_HEADLOSSFORM in function ENgetoption
2018-09-23 19:41:27 +03:00
Elad Salomons
dad11cce8d
Add option to get\set default demand pattern
...
also updates the net builder test
2018-09-15 14:22:20 +03:00
Michael Tryby
bec729a669
Fixing compiler warnings
2018-09-13 10:48:55 -04:00
Elad Salomons
756e8be735
Merge pull request #265 from eladsal/dev-control
...
Add EN_addcontrol function
2018-09-05 07:42:02 +03:00
Michael Tryby
8059a90192
Add ENsetdemandpattern
2018-09-04 15:16:40 -04:00
Michael Tryby
5f2de4ab5d
Merging upstream dev
2018-09-04 11:56:06 -04:00
Michael Tryby
b9a1934879
Making epanet exports opt in
2018-09-04 11:53:53 -04:00
Michael Tryby
b7e9988b15
Adding unit test for reentrancy
2018-09-04 09:38:44 -04:00
Elad Salomons
5d241e2fbd
Create headers for EN_addcontrol
2018-09-03 08:18:42 +03:00
Michael Tryby
b2aa8de927
Fixing build error on Travis
2018-08-31 13:15:00 -04:00
Michael Tryby
d33167161a
Revert "Make memorypool threadsafe "
2018-08-31 11:14:16 -04:00
Elad Salomons
25db9cfe8f
Merge pull request #242 from Mariosmsk/pr86
...
add ENsetdemandpattern. Closes #241
2018-08-31 06:51:39 +03:00
Michael Tryby
c4b6756926
Fixing compile error on Travis
2018-08-30 15:39:06 -04:00
Michael Tryby
21f40f0daf
Making memorypool.c reentrant and adding test
2018-08-30 15:30:34 -04:00
Elad Salomons
7d8d780a8b
Merge branch 'dev' into pr86
2018-08-30 17:55:35 +03:00
Michael Tryby
bdfe7ec289
Fixing build for python wrapper
2018-08-28 11:23:30 -04:00
Marios Kyriakou
70f51d9567
add ENsetdemandpattern
2018-08-28 00:19:56 +03:00
Michael Tryby
bdc05058ca
Resolving merge conflicts
2018-08-27 09:38:46 -04:00
Michael Tryby
f495d2c707
Merge branch 'dev' into contributor-lr
2018-08-24 16:09:21 -04:00
Michael Tryby
e8acc1b177
Fixing build
2018-08-23 07:48:01 -04:00
Michael Tryby
0938f82c32
Adding adding GEN_X macro for cmake export header
2018-08-22 15:46:24 -04:00
Michael Tryby
c6fe1230d0
Fixing merge conflict
2018-08-22 15:20:53 -04:00
Michael Tryby
75e400cf44
Merging changes from upstream dev
2018-08-22 15:09:33 -04:00
Michael Tryby
fafad2a070
Revert "Reorganizing epanet header"
...
This reverts commit c8803a9f1b .
2018-08-22 15:05:48 -04:00