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
1709b12f6a
Fixes to EN_addlink and EN_deletelink
2019-10-29 20:09:56 -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
344700a136
Fixes problems with EN_addnode() ( #543 )
...
See issue #542 . Also modifies unit test test_node to check that fixup works.
2019-10-16 15:07:14 -04:00
Sam Hatchett
5f7fd55a36
Return error if node/link name is too long ( #535 )
...
* co-authored with @ehsan-shafiee
* removes errant slashes
* Throws correct error for ID name too long
* Revert "Throws correct error for ID name too long"
This reverts commit 57b4873f5882cb9fd983f7e1e5a703b9e442cd74.
* fixes #534 by bubbling error codes up from add node/link internal functions
* fixes tests on Mac at least
* fixes improper success code
* Error 252 (not 250) returned for ID name too long.
From errors.dat: DAT(252,"invalid ID name")
2019-10-09 10:47:45 -04:00
Lew Rossman
1501204f5f
Refactor of hydcoeffs.c
...
Simplifies and unifies how limit on head gradient at low flow is handled.
2019-10-04 10:01:41 -04:00
Lew Rossman
38278f7d46
Fixed use of strncpy in xstrcpy()
2019-09-30 15:51:17 -04:00
Lew Rossman
3300ef00cb
getTmpName() and xstrcpy() made safer
2019-09-30 14:05:38 -04:00
Lew Rossman
f2ef979d95
Removed dependence on unistd.h in project.c
...
Travis CI failed because system could not find unistd.h.
2019-09-26 11:18:39 -04:00
Lew Rossman
da1253f4ea
Fixes bugs in pump and demand head loss gradients
2019-09-26 11:01:01 -04:00
Sam Hatchett
647abd71c1
fixes mkstemp file handle-leaking behavior ( #529 )
2019-09-25 10:47:38 -04:00
mariosmsk
eb04559a11
rm set to null in functions EN_deletenode, EN_deletelink
2019-08-10 11:51:21 +03:00
mariosmsk
1ce6901103
fix in EN_deleteLink
...
when pipes are deleted via deletelink it also deletes comment of last link
Co-Authored-By: Pavlos Pavlou <pavlou.v.pavlos@ucy.ac.cy >
2019-08-08 15:50:19 +03:00
Lew Rossman
803bad0bf0
Fixes EN_setlinkvalue bug
2019-08-05 14:08:18 -04:00
Lew Rossman
3716d33213
Add -MT switch for CMake Windows build
2019-07-24 19:02:00 -04:00
mariosmsk
4e2e6c952a
Fix EN_getElseaction and EN_setelseaction
...
Co-Authored-By: Andreas Ashikkis <andreasashikkis@users.noreply.github.com >
2019-07-24 16:13:37 +03:00
Lew Rossman
a22a3cffe0
Minor update to force new CI test
2019-07-22 11:25:12 -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
Lew Rossman
85e2f2c187
Identifies overflowing tank in Status Report
2019-06-20 15:00:18 -04:00
Lew Rossman
d17a7df956
Update input3.c
2019-06-19 11:00:23 -04:00
Lew Rossman
9669742ab3
Adds tank overflow feature
2019-06-17 09:16:04 -04:00
Lew Rossman
6a5aa372f8
Change default properties for new pipe created with EN_addlink (issue #500 )
2019-05-28 11:17:44 -04:00
Lew Rossman
40c39fd3c6
Fixes problem with findpattern() function (issue #498 )
2019-05-24 10:33:36 -04:00
Lew Rossman
efb189ac39
Fix refactor of types.h
2019-05-14 00:00:03 -04:00
Lew Rossman
c9b836973e
Removes _DEBUG directives from all source files
...
This commit removes the #ifdef _DEBUG statements at the top of all source code files per issue #482 . It also updates the doc files to stress that the speedup observed for hydraulic analysis with the MMD node re-ordering method only applies to single period runs.
2019-05-13 23:49:19 -04:00
Lew Rossman
0930a33321
Minor format change to status report
2019-05-12 19:20:16 -04:00
Elad Salomons
178ad5736e
Update rules.c
...
Fix broken win build script
2019-05-09 20:01:14 +03:00
Lew Rossman
365ab00dcb
Refactors the API's demand editing functions
2019-05-09 10:26:40 -04:00
Elad Salomons
52bda22833
Merge pull request #478 from eladsal/473
...
For "conditional" do not delete a node connected to a link
2019-05-08 16:56:23 +03:00
Elad Salomons
eefc7f7d05
For "conditional" do delete a node connected to a link
...
For "conditional" deletion the node is deleted only if all of its links have been explicitly deleted beforehand #473
Co-Authored-By: Lew Rossman <lrossman@outlook.com >
2019-05-06 11:36:41 +03:00
Markus Sunela
1aef998b81
Fixed NULL pointer error, if no label is provided after the rule keyword.
...
Add NULL guard in freerules function. Use strncat and strncpy to ensure
the buffer lengths are adhered to.
2019-05-03 10:36:59 +03:00
Lew Rossman
97be7944f4
Fix problems with setting tank parameters (issue #464 )
2019-04-25 08:22:44 -04:00
Michael Tryby
35cf9bd422
Fix bug and test remove demand
2019-04-24 18:40:47 -04:00
Michael Tryby
dc3c2ffe1a
Adding remove demand method to toolkit
2019-04-24 16:30:27 -04:00
Michael Tryby
d927851d20
Adding remove node method to generic list
2019-04-24 16:29:57 -04:00
Michael Tryby
9b3173f9be
Adding key and search to list
2019-04-24 13:15:43 -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
Michael Tryby
900813367e
Update demand.c
2019-04-23 14:44:11 -04:00
Michael Tryby
feee7f2c80
Update epanet.c
...
Updating EN_getnodevalue() and EN_setnodevalue() to process the primary demand located at the head of the demand list
2019-04-23 14:42:37 -04:00
Michael Tryby
5d3eeb91d9
Reverted handling of default pattern
...
When creating demands, no pattern is marked with a zero. Then when data is adjusted it gets updated to default.
2019-04-23 11:44:02 -04:00
Michael Tryby
73bc53ad54
Update demand.c
2019-04-23 08:51:22 -04:00
Michael Tryby
4f9c901e6e
Merge branch 'dev-list' of https://github.com/michaeltryby/EPANET into dev-list
2019-04-23 08:44:53 -04:00
michaeltryby
f19d43d3a4
Merge branch 'dev' of https://github.com/OpenWaterAnalytics/EPANET into dev-list
2019-04-22 13:36:44 -04:00
michaeltryby
ce70d144ce
Restoring write_demands section in saveinpfile
2019-04-22 13:13:38 -04:00
michaeltryby
60853ecb15
Update demand.c
...
Fixing bug in get_category_name when category_name is NULL
2019-04-22 13:08:43 -04:00
michaeltryby
c98a43e72c
Isolating bug
...
Not writing demand section of input file should eliminate it
2019-04-22 12:47:52 -04:00
michaeltryby
d34ac67172
updating get demand name and write demands
...
Everything passing locally
2019-04-22 12:14:33 -04:00