Michael Tryby
3ba40015b2
revert 8574f52
2019-04-02 15:41:24 -04:00
Michael Tryby
907760540e
Reorganizing public functions
2019-04-02 15:34:21 -04:00
Michael Tryby
ecf0e5173c
revert 1a01b46 to 1b167b5
2019-04-02 15:27:05 -04:00
Michael Tryby
44fc73cf41
Fixing bug
2019-04-02 14:37:32 -04:00
Michael Tryby
3828ebb1cd
updating cstr_helper to use secure string functions
2019-04-02 13:48:38 -04:00
Michael Tryby
a89f3c9005
Making sure filename is null terminated string
...
Added file_handle validation
2019-04-02 12:31:05 -04:00
Michael Tryby
c98d13de80
Updated filemanager to use dynamically allocated strings
...
converted filename to dynamically allocated string
created cstr_helper
2019-04-02 11:05:56 -04:00
Michael Tryby
2c6d4ca74d
Work in progress
...
Added test for temp files, getter for filename, and wrappers for fwrite, fprintf, and fgets
2019-04-01 18:05:02 -04:00
Michael Tryby
b9f00421dd
Adding header info
2019-04-01 15:16:58 -04:00
Michael Tryby
23ac179ec1
Implementing filemanager
...
Implementing and testing filemanager and upgrading epanet_output library to use it.
2019-04-01 15:03:02 -04:00
Michael Tryby
69da9a4997
Work in progress
2019-03-29 17:04:55 -04:00
Michael Tryby
d1df792c77
Adding remove_file()
2019-03-28 17:39:05 -04:00
Michael Tryby
727ede3aba
Initial commit
...
filemanager
2019-03-28 17:28:02 -04:00
Michael Tryby
1b167b5caf
Cleaning up include statements
...
Removing inclusion of malloc.h. Adding crtdbg.h
2019-03-28 09:26:26 -04:00
Michael Tryby
8574f52256
Fixing indentation
2019-03-26 16:48:08 -04:00
Michael Tryby
27bf153941
Updating py API with changes to errormanager
2019-03-26 13:09:09 -04:00
Michael Tryby
b02f1ef346
Merge branch 'dev' of https://github.com/OpenWaterAnalytics/EPANET into dev
2019-03-22 14:10:41 -04:00
Michael Tryby
ccbb422259
Reorganizing src and test folders
...
Moving epanet_output library from tools to src folder. Setting up parallel folder hierarchy in tests folder.
2019-03-20 17:58:24 -04:00
Michael Tryby
7eadbc25ce
Adding unit test and refactoring
...
Added unit test for errormanager and refactored to simplify use of error_check() method.
2019-03-20 15:43:27 -04:00
Lew Rossman
18f65eb8b0
Replace fixed-sized comment strings with dynamic strings
2019-03-17 19:54:51 -04:00
Lew Rossman
03f41d567d
Set InFile to NULL after closing it
2019-03-09 10:52:59 -05:00
Lew Rossman
e5ec4eecab
Fixes writing auxiliary data for deleted elements to a saved input file ( #411 )
2019-03-08 16:41:12 -05:00
Lew Rossman
d2386707d6
Merge pull request #410 from makusuko/dev
...
Fix re-entrancy problems / crashes caused by the use of static variables in functions
2019-03-08 13:09:33 -05:00
Michael Tryby
fbbffb36ce
Renaming rprt_getcount to proj_getcount
2019-03-08 09:51:38 -05:00
Markus Sunela
78abe70d89
Fix re-entrancy problems caused by the (unnecessary) use of static variables in functions.
...
While at it, mark most of functions static, as they are not used outside the module.
2019-03-07 11:03:01 +02: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
12c64b69cd
Refactored EN_close function to use newly added closeoutfile function
2019-03-06 13:23:55 -05:00
Lew Rossman
6e13d7e3aa
Refactoring how the binary output is closed
...
This change implements the fix suggested by @gonccalo.
2019-03-06 11:14:03 -05:00
Lew Rossman
3ebb1831d7
Another attempt to fix closing/opening of output project
2019-03-06 10:44:03 -05:00
Lew Rossman
8765dfa3ab
Initialize all file pointers to NULL in initpointers
2019-03-05 20:50:34 -05:00
Lew Rossman
324487ba86
Opening & closing output file in writeresults
2019-03-05 19:40:30 -05:00
Lew Rossman
09d6c7ea5d
Reverting some previous changes
2019-03-05 19:07:55 -05:00
Lew Rossman
f2c0718819
Refactored closing/opening of output file
2019-03-05 16:15:33 -05:00
Lew Rossman
8052ed0b6f
Walking back closing/opening output file
2019-03-05 15:20:37 -05:00
Lew Rossman
692955e3d2
Give external apps access to binary output file ( #407 )
2019-03-05 09:23:49 -05:00
Lew Rossman
65a6c846b6
Change ENgetcoords & ENsetcoords args. to doubles
2019-03-02 12:26:49 -05:00
Michael Tryby
9f1b46b66a
Fixing bug in gettimeparam
2019-03-01 15:16:27 -05:00
Michael Tryby
b3a9701863
Adding test for getoption
2019-03-01 12:12:10 -05:00
Michael Tryby
a4b2e53768
Adding tests for save and use hydraulics file
2019-02-28 11:14:15 -05:00
Michael Tryby
97ae763d1a
Moving getcount in epanet.py and adding test
2019-02-28 09:17:16 -05:00
Michael Tryby
c7d533c6e4
Adding tests for gettitle and saveinpfile
2019-02-28 08:11:59 -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
Michael Tryby
cba9dda5cf
Fixing build error gcc / Travis
2019-01-30 14:30:44 -05:00
Michael Tryby
8d12664061
Removing EN_API_FLOAT_TYPE
2019-01-28 11:31:31 -05:00
Michael Tryby
b339ff22ca
Merging dev into dev-swig-redux
2019-01-28 11:23:25 -05:00