Lew Rossman
821d13497f
Replaced the Doxygen files in the doc folder (issue #373 )
2019-01-24 10:51:37 -05:00
Lew Rossman and GitHub
2626ab9982
Merge pull request #372 from LRossman/lrossman-dev
...
New updates to address compiler warnings (issue #370 )
2019-01-22 10:50:07 -05:00
Lew Rossman
0cfa45e52e
New updates to address compiler warnings (issue #370 )
...
In addition to addressing compiler warnings, argument names in the API function prototypes were made more consistent and descriptive. Also additional Doxygen comments were added in preparation for producing a more thorough documentation of the API.
2019-01-19 16:56:19 -05:00
Lew Rossman and GitHub
414db4d7e2
Merge pull request #369 from LRossman/lrossman-dev
...
Floating pt. args in thread-safe API changed to doubles (Issue #365 )
2019-01-16 09:20:34 -05:00
Lew Rossman
f673aa2f20
Modifications made to EN_getlinkvalue & EN_setlinkvalue in EPANET.C
...
1. EN__PUMP_ECOST added to EN_getlinkvalue.
2. Order of cases in switch statement of both EN_getlinkvalue and EN_setlinkvalue changed to match the order of EN_LinkProperty enumeration.
2019-01-11 12:52:09 -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 and GitHub
15bc01253b
Merge pull request #368 from LRossman/lrossman-dev
...
Added additional network building features (#367 )
2019-01-04 12:20:52 -05:00
Lew Rossman
baa7ba9357
Update ReleaseNotes2_2.md
2019-01-02 11:04:34 -05:00
Lew Rossman
628fffc718
Added additional network building features ( #367 )
2019-01-02 10:33:58 -05:00
Lew Rossman and GitHub
9464465fa7
Merge pull request #363 from LRossman/lrossman-dev
...
Checks addded to prevent changing network structure when solver active (#361 )
2018-12-21 10:40:17 -05:00
Lew Rossman
3ce0361c1d
Network validity checks added to openhyd()
...
Checks on illegal valve connections made whenever API creates a new link, changes its end nodes, or changes its type.
2018-12-20 08:36:05 -05:00
Lew Rossman
a66f5a2c92
Checks addded to prevent changing network structure when solver active ( #361 )
2018-12-18 15:35:06 -05:00
Lew Rossman and GitHub
311871b577
Merge pull request #360 from LRossman/lrossman-dev
...
Error reporting fixes and re-formatting (issue #358 )
2018-12-17 13:13:08 -05:00
Lew Rossman
f1175b1f92
Error reporting fixes and re-formatting (issue #358 )
2018-12-15 15:13:19 -05:00
Lew Rossman and GitHub
4e3b96e61c
Merge pull request #356 from LRossman/lrossman-dev
...
Re-write of main.c (issue #355 )
2018-12-07 16:15:54 -05:00
Lew Rossman
6783b68e4f
Set main() to return 100, not errmsg, if run has fatal error
2018-12-07 11:41:37 -05:00
Lew Rossman
e2ee4564a8
Return 0 from main.c if run has warnings
2018-12-07 09:46:15 -05:00
Lew Rossman
fa80bec8bb
Included error number as part of error message (issue #357 )
2018-12-06 11:40:59 -05:00
Lew Rossman
0930a64142
Re-write of main.c
2018-12-06 11:11:41 -05:00
Lew Rossman and GitHub
5f2cd402ef
Merge pull request #354 from LRossman/lrossman-dev
...
Avoid possible divide by zero in hydcoeffs.c
2018-12-06 10:56:08 -05:00
Lew Rossman
107483bee8
Avoid possible divide by zero in hydcoeffs.c
2018-12-04 09:50:01 -05:00
Lew Rossman
20bc6358ff
Restored previous parallel link detection method to smatrix.c
2018-11-28 10:01:29 -05:00
Lew Rossman
d3a50dc490
Fixed refactoring bug in EN_setlinkid
2018-11-27 19:25:01 -05:00
Lew Rossman
b7a7cdc5ee
Another update to test_setid.cpp
2018-11-27 16:45:13 -05:00
Lew Rossman
7c21b9c740
Update test_setid.cpp
2018-11-27 16:10:39 -05:00
Lew Rossman
24d90a530d
Replaced EN_ProjectHandle with EN_Project in unit tests
2018-11-27 15:16:12 -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 and GitHub
123a0c3788
Merge pull request #335 from LRossman/lrossman-dev
...
Fixes #172 (adjust controls when node/link is deleted) & EN_addrule added
2018-11-09 09:48:28 -05:00
Lew Rossman and GitHub
6397a01363
Merge branch 'dev' into lrossman-dev
2018-11-07 23:19:16 -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 and GitHub
de6d22ab41
Merge pull request #329 from LRossman/lrossman-dev
...
Fixes bug #172 (adjust controls & rules when node/link added or deleted)
2018-10-31 11:47:33 -04: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 and GitHub
3ac243d0c8
Merge pull request #328 from LRossman/lrossman-dev
...
Deleted include\epanet_export.h
2018-10-29 12:04:41 -04:00
Lew Rossman
5ddb54ab90
Deleted include\epanet_export.h
...
It gets generated through the cmake build process.
2018-10-29 11:44:25 -04:00
Lew Rossman and GitHub
1234c7e685
Merge pull request #326 from LRossman/lrossman-dev
...
Restored epanet_export.h to \include folder
2018-10-29 09:12:12 -04:00
Lew Rossman
a86ba29cb6
Restored epanet_export.h to \include folder
2018-10-29 09:06:08 -04:00
Lew Rossman and GitHub
5cb9d06151
Merge pull request #325 from LRossman/lrossman-dev
...
Deleted previous, commented-out version of EN_setlinktype
2018-10-28 20:25:10 -04:00
Lew Rossman
c2b16a6466
Deleted previous, commented-out version of EN_setlinktype
2018-10-28 20:07:54 -04:00
Lew Rossman and GitHub
291789ca04
Merge pull request #324 from LRossman/lrossman-dev
...
Rewrite of EN_setlinktype function (#305 )
2018-10-28 17:09:41 -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 and GitHub
7d021d8b82
Merge pull request #322 from LRossman/lrossman-dev
...
Removed 'writecon' function (#300 )
2018-10-27 12:04:38 -04:00
Lew Rossman
27cc088c4a
Reverted back to old main()
...
Trying to see why new version of main causes some CI reg tests to fail.
2018-10-27 11:31:06 -04:00
Lew Rossman
320dec3ff7
Replaced main() for runnable version of the library
2018-10-27 11:00:00 -04:00
Lew Rossman
9d0b738e77
Removed writecon function and all calls to it
2018-10-27 09:36:21 -04:00
Lew Rossman
8286918b94
Removed unused runconcurrent() function
2018-10-27 09:05:30 -04:00
Lew Rossman
e9161adbe6
Defined EN_MAXID & EN_MAXMSG limits in API header
2018-10-27 08:48:41 -04:00
Lew Rossman and GitHub
09e46bc459
Merge pull request #320 from LRossman/lrossman-dev
...
Fixed bug setting pump curve params (#314 ) and in setting demand categories
2018-10-25 12:22:04 -04:00
Lew Rossman
39fcfa2162
Fixed bug setting pump curve params ( #314 ) and in setting demand categories
...
-Split off calc. of a pump's curve coeffs. from getpumpparams to updatepumpparams.
- Fixed problem with initializing node demand category when default demand pattern set before node is created.
- Increased MAXLINE to 1024 to accomodate increase in MAXMSG.
- Replaced EN_geterror calls in input2.c with geterrmsg (it's bad form to call API functions in the body of the library)
2018-10-25 09:39:28 -04:00
Lew Rossman and GitHub
2ed36c06a1
Merge pull request #315 from LRossman/lrossman-dev
...
Fixed bug in EN_deletelink (#312 )
2018-10-24 09:02:54 -04:00
Lew Rossman
69388024fb
Fixed bug in EN_deletelink ( #312 )
2018-10-23 16:00:14 -04:00
Lew Rossman and GitHub
3f90e44eda
Merge pull request #303 from LRossman/dev-lrossman
...
Fix #211 for EN_setreport
2018-10-23 09:21:02 -04:00
Lew Rossman
f7346cef5f
Modified re-factored version of hash.c
2018-10-19 10:36:39 -04:00
Lew Rossman
0041772aa0
Corrected test_setid unit test code
2018-10-18 10:16:47 -04:00
Lew Rossman
60a79de4a9
Fixed bug in hash.c
...
A bug in the delete function in hash.c was preventing the unit test of the new set ID API functions from running properly. In fixing this bug the entire hash table code was refactored to make it look more like the mempool service routines. Also the need to copy the string passed into the table's insert function was eliminated.
2018-10-18 10:03:09 -04:00
Lew Rossman
b3e84e0c42
Added unit test for ENsetnodeid and ENsetlinkid functions
2018-10-17 10:17:00 -04:00
Lew Rossman
76419e0b4c
Added EN_setnodeid and EN_setlinkid (Issue #306 )
2018-10-17 09:05:16 -04:00
Lew Rossman
1fce14efb8
Increased size of MAXMSG to 255 ( #189 )
2018-10-15 11:34:25 -04:00
Lew Rossman
1c3044c948
Fix #211 for EN_setreport
2018-10-14 11:05:15 -04:00
Lew Rossman
570f96b264
Update src/qualroute.c
2018-10-09 15:55:19 -04:00
Lew Rossman
7c021cf533
Fixed water quality mass balance issue ( #160 )
2018-10-09 12:53:20 -04:00
Lew Rossman
e45a23c4ef
More robust method for handling zero/low flows ( #164 )
2018-09-12 10:38:01 -04:00
Lew Rossman
dab7be8446
Updates to fix zero flow ( #164 ) and D-W eqn. ( #199 ) issues
2018-09-11 13:15:15 -04:00
Lew Rossman
836d9c3668
Revert "Fixes zero flow issue ( #164 ) and DW eqn. ( #199 )"
...
This reverts commit 6b808c03ab .
2018-09-11 11:04:47 -04:00
Lew Rossman
6b808c03ab
Fixes zero flow issue ( #164 ) and DW eqn. ( #199 )
2018-09-11 09:48:01 -04:00
Lew Rossman
fdca2bef42
Edits made to 2.2 Release Notes
2018-09-03 10:34:03 -04:00
Lew Rossman
6e73b6a4f5
Made mempool.c threadsafe ( #234 )
2018-09-03 10:29:41 -04:00
Lew Rossman
b3e26b9ac8
Resolved conflict in inpfile.c
2018-08-13 10:11:34 -04:00
Lew Rossman
3bd2d4a800
Merge branch 'contributor-lr' of https://github.com/LRossman/EPANET into contributor-lr
2018-08-13 10:09:44 -04:00
Lew Rossman
a73d9235e7
Fixed max. flow change node ID in Status Report
2018-08-13 10:04:24 -04:00
Lew Rossman
b5e3986e6b
Pressure Dependent Demands added to address issue 163
2018-08-09 10:42:47 -04:00
Lew Rossman
e29a14a672
Merge branch 'contributor-lr' of https://github.com/LRossman/EPANET into contributor-lr
2018-07-02 13:55:54 -04:00
Lew Rossman
86ffbcf614
Improved node re-ordering method (Issue #162 )
2018-07-02 13:55:41 -04:00
Lew Rossman
55a7179ca6
Merge branch 'contributor-lr' of https://github.com/LRossman/EPANET into contributor-lr
2018-06-21 12:05:59 -04:00
Lew Rossman
f5a1b9e518
Reverted to legacy Darcy-Weisbach method
2018-06-21 12:05:51 -04:00
Lew Rossman
92e10a18b0
Added new convergence options to epanet2.h
2018-06-19 10:41:30 -04:00
Lew Rossman
3a6cd60b96
Merge branch 'contributor-lr' of https://github.com/LRossman/EPANET into contributor-lr
2018-06-19 10:34:51 -04:00
Lew Rossman
e9303de078
Fixes to implement issue #161
2018-06-19 10:30:02 -04:00
Lew Rossman
d5194ffb81
Merge branch 'contributor-lr' of https://github.com/LRossman/EPANET into contributor-lr
2018-06-16 11:12:59 -04:00
Lew Rossman
9afb6f0b28
Merge branch 'contributor-lr' of https://github.com/LRossman/EPANET into contributor-lr
2018-06-16 11:10:07 -04:00
Lew Rossman
b3ab8ea2c7
Addresses issue #161
...
Adds new options HEADERROR and FLOWCHANGE to provide more rigorous criteria for hydraulic convergence. Also breaks HYDRAUL.C into 3 separate files to improve code readability.
2018-06-16 11:02:18 -04:00
Lew Rossman
a73b2d7508
#defined MAXFNAME as 260 instead of L_tmpnam_s
2018-06-09 12:07:44 -04:00
Lew Rossman
f0c9684871
Changes to pass reg tests
...
Revised getTmpName() in EPANET.C
2018-06-05 10:31:18 -04:00
Lew Rossman
598f080f52
Merge branch 'contributor-lr' of https://github.com/LRossman/EPANET into contributor-lr
2018-05-24 09:38:34 -04:00
Lew Rossman
4d1cd779ca
Changed version # in binary output file
...
Kept version number at 20012 in binary output file so that the existing EPANET GUI can use this EPANET DLL.
2018-05-24 09:35:49 -04:00
Lew Rossman
24d6b91607
Changes to get Net1.inp to run
2018-05-22 11:12:14 -04:00