Commit Graph

1149 Commits

Author SHA1 Message Date
Lew Rossman d05ea20c9a Fixes problem with re-opening const. HP pumps
See latest comments in issue #528. Also, the setlinkflow() function was deleted as it was never called anywhere.
2019-12-05 10:16:12 -05:00
Lew Rossman b3a306f69b Merge pull request #567 from OpenWaterAnalytics/lrossman-ReleaseNotesUpdate
Update ReleaseNotes2_2.md
2019-12-05 10:03:32 -05:00
Lew Rossman 21defae4c7 Update ReleaseNotes2_2.md
I added the v2.2 contributing authors to the notes. I checked PR's from 2017 and beyond and these were the only names I could find. Please append any one I might have missed.
2019-12-04 10:56:01 -05:00
Lew Rossman 5288bc88bf Merge pull request #566 from OpenWaterAnalytics/lrossman-doc_correction
Correction made to doc files
2019-12-04 09:23:27 -05:00
Lew Rossman e11740ce56 Correction made to doc files
The output-format.dox file was deprecated and not included in the doxyfile so it was deleted. The description of the format of of the Energy Usage section of the binary output in toolkit-files.dox was corrected.
2019-12-02 11:26:50 -05:00
Lew Rossman f18152482c Merge pull request #565 from OpenWaterAnalytics/lrossman-input3_bug_fix
Fixes a "copy over" bug in input3.c
2019-12-02 11:17:13 -05:00
Lew Rossman 3935247e2b Fixes a "copy over" bug in input3.c
The copying of one input line token over another was causing a compilation error under Clang. With v2.2 this copying is no longer needed so the line of code in question was simply deleted.

This commit also deletes the HTML and Latex output generated by running Doxygen that got added from the previous update to dev since they don't really belong in a source code repo.
2019-11-29 15:56:33 -05:00
Demetrios G. Eliades c16c861789 HTML Users Guide 2019-11-21 16:58:18 +02:00
Demetrios G. Eliades 3259a8c1e1 PDF Guide
PDF users' guide for EPANET, and some minor corrections to readme.md to fix some formatting issues.
2019-11-21 16:55:49 +02:00
Lew Rossman f87865a849 Merge pull request #562 from OpenWaterAnalytics/lrossman-valvecheck_fix
Bug fix for valvecheck function
2019-11-19 09:40:11 -05:00
Elad Salomons 02173df64c Merge pull request #560 from OpenWaterAnalytics/eldemet-patch-1
Incorrect character causing a LaTeX compilation problem
2019-11-16 20:32:26 +02:00
Lew Rossman 2033ddfc22 Fixed editing errors made to project.c 2019-11-15 12:55:29 -05:00
Lew Rossman 94b6cb28b6 Restored prior update to project.c that got overwritten 2019-11-15 12:50:54 -05:00
Lew Rossman ce2a27f38e Bug fix for valvecheck function
See issue #561
2019-11-15 11:53:09 -05:00
Sam Hatchett 88e09ba8df fixes a crashing issue in freedata (#559)
The freedata function used cached values for sizes of certain arrays found in the parser struct. However, now that the network is mutable, those values can become invalid. Relying instead on the actual array lengths prevents freeing unallocated memory, or ignoring cleanup on newly created elements.
2019-11-15 09:57:32 -05:00
Demetrios G. Eliades 5993895228 Incorrect characterd
There was a character ’ instead of ' which created an error when compiling LaTeX.
2019-11-15 09:14:42 +02:00
Lew Rossman 45b28f52be Merge pull request #557 from OpenWaterAnalytics/lrossman-setheadcurveindex
Adds error check to EN_setheadcurveindex
2019-11-12 10:41:28 -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 d15ac77bf4 Merge pull request #555 from OpenWaterAnalytics/lrossman-EN_getrule
EN_getrule bug fix and EN_MISSING addition
2019-11-08 09:55:59 -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 7400fad7be Merge pull request #551 from OpenWaterAnalytics/lrossman-EN_setcurve
Bug fix for EN_setcurve
2019-11-05 09:59:28 -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 271d855b94 Merge pull request #549 from OpenWaterAnalytics/lrossman-vertices
Adds link vertex get/set functions to the API
2019-10-31 10:17:26 -04:00
Lew Rossman 55e2879e2d Updates the docs 2019-10-30 15:11:20 -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 d5becaf1a0 Merge pull request #547 from OpenWaterAnalytics/lrossman-ENgetresultindex
Adds EN_getresultindex function to the API
2019-10-29 16:09:47 -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 5601973d67 Merge pull request #537 from OpenWaterAnalytics/lrossman-hydcoeffs_refactor
Refactor of hydcoeffs.c
2019-10-08 10:17:52 -04:00
Lew Rossman 6e80fd8d99 Update ReleaseNotes2_2.md 2019-10-07 14:27:47 -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 ad139a4f08 Merge pull request #536 from OpenWaterAnalytics/lrossman-pump_bug_fix
Fixes bugs in pump and demand head loss gradients
2019-10-04 09:34:43 -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 d111fbfda2 reverts posix include (#533)
... because it is not needed
2019-09-25 13:05:20 -04:00
Sam Hatchett 647abd71c1 fixes mkstemp file handle-leaking behavior (#529) 2019-09-25 10:47:38 -04:00
Sam Hatchett 9f1634a23c welcome to the Actions beta 2019-09-19 11:29:14 -04:00
Sam Hatchett cb16654e34 Update ccpp.yml 2019-09-19 11:27:21 -04:00
Sam Hatchett 2e42931140 trial actions config 2019-09-19 11:20:15 -04:00
Lew Rossman 9572acd377 Merge pull request #527 from Mariosmsk/fix_delete_link_comment
fix in EN_deleteLink
2019-08-12 09:48:57 -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 0f3005e5ae Merge pull request #525 from OpenWaterAnalytics/lrossman_ENsetlinkvalue_bug_fix
Fixes EN_setlinkvalue bug
2019-08-06 20:13:04 -04:00
Lew Rossman 803bad0bf0 Fixes EN_setlinkvalue bug 2019-08-05 14:08:18 -04:00