99d0ef70bd
Remove excited state switch for I/O and add state_id
2022-09-28 10:22:56 +02:00
6ba8c5ddc3
Buffered floats v1: determinant tests pass
2022-09-27 19:56:09 +02:00
7fc4465d33
Add functions to force flushing of data buffers
2022-09-13 11:29:59 +02:00
8428a0ab0f
Fix compiler warning during strncpy
...
The size of 32 correspond to previously allocated block of memory and SHOULD be adapted accordingly
2022-07-11 16:36:58 +02:00
b656b13cc6
More portable directory macros
2022-07-11 16:28:46 +02:00
3cd7cac8f1
Fix potential buffer overflows in text back end
2022-07-08 12:26:23 +02:00
4ed3e0c6d0
Implement trexio_has_group templates
2022-07-04 11:22:31 +02:00
c6b628e583
Refactoring by adding a custom garbage collector
2022-05-18 14:55:42 +02:00
c4ccd006ca
Add I/O for coefficient_size
2022-04-15 15:20:47 +02:00
42ae31a4d1
Add coefficients to text back end and test
2022-04-14 16:35:32 +02:00
q-posev
e3238f792a
Fix compiler warning
2022-04-12 16:36:35 +02:00
q-posev
4904de5674
Fix bug with broken data offset upon writing
2022-04-12 11:47:07 +02:00
q-posev
738d8de5ca
TEXT back end working
2022-04-12 00:41:57 +02:00
7d640b06dd
Reformat
2022-04-11 16:31:45 +02:00
aa47ae4c2e
Working text back end [to test]
2022-04-11 13:13:56 +02:00
q-posev
a2fee3164b
[WIP] text back end
2022-04-11 09:26:54 +02:00
68d34a0ace
use built-in trexio_text_free_group function for garbage collection
2022-02-14 10:44:04 +01:00
5eb697abcc
[WIP] refactor read_group set of functions to read data in arbitrary order
...
This fix is required to fix backwards compatibility issue of TEXT back end. In the meantime, the custom garbage collector from generator_tools which was deallocating previously allocated memory (datasets and strings) is no longer valid here since the order of allocation can be atrbitrary. This requires a new custom garbage collector, maybe as a separate functions in TEXT back end
2022-02-07 15:57:38 +01:00
f68a59417e
add overwriting functionality for unsafe mode [TEXT]
2022-01-24 16:13:27 +01:00
6fe5a1eaa7
[WIP] add delete_group functions and unsafe trexio_open mode
2022-01-24 10:10:16 +01:00
550c5c3954
implement trexio_inquire function in front and back ends
2022-01-19 14:06:10 +01:00
64081e46ad
cppcheck fixes
2022-01-07 11:50:55 +01:00
4ef5386ae6
[cppcheck] fix some warnings
2021-12-27 16:29:26 +01:00
0a8aa638f6
fix double deallocation in text back end
2021-12-23 18:49:00 +01:00
c2376bf168
Fixed bug in text back-end when reading empt attributes
2021-12-23 18:21:17 +01:00
q-posev
31ccd27a0a
fix warnings on MacOS
2021-12-17 17:07:53 +01:00
2639b76a6e
optimize storage of indices depending on the size_max variable [TEXT]
2021-12-17 15:32:03 +01:00
9f5ee463e1
only shift indices that have been read to the buffer (EOF case)
2021-12-10 14:02:05 +01:00
e5bde10056
alternative way to check for EOF with fgets while reading
2021-12-03 19:23:01 +01:00
ed3bde973e
[WIP] more general templated variables for sparse data
...
+ renamed templated variables with std_dtype_in|out suffix into _format_scanf|printf for clarity
2021-12-03 15:42:40 +01:00
c520175cbe
use size_max values provided by the read_size functions
2021-12-03 11:48:51 +01:00
d2c95cd306
add functions to read the number of stored sparse elements
2021-12-02 17:28:37 +01:00
acdf982a94
fixed string length for file name + comments
2021-12-01 16:28:47 +01:00
7afce779a8
better error handling in TEXT back end
2021-12-01 16:11:40 +01:00
83c926fd6b
replace offset_data arg with pointer arithmetics
2021-12-01 09:56:31 +01:00
d3ba8f3652
[WIP] working generator for sparse functions
...
+ remove trailing whitespaces
2021-11-30 16:30:36 +01:00
c1e1176400
[WIP] text back end
2021-11-24 17:44:54 +01:00
1812deb9dd
Check return value of mkdtemp
2021-10-14 10:53:15 +02:00
5cf12131f1
Fix text back end for read-only directories (make distcheck in qmckl)
2021-10-13 17:43:15 +02:00
d017306706
Better error handling with open in text back end
2021-10-13 16:13:24 +02:00
389d265f7f
fix cppcheck warnings regarding redundant size_dset_str checks
2021-09-21 16:08:04 +02:00
d1a9af4185
remove blank spaces in front of pointers
2021-09-21 15:54:11 +02:00
788f7e666d
read single numerical attributes based on _isSet bool flag
2021-09-21 15:41:12 +02:00
11a17c65d3
add attr_ prefix to the template file name for numerical attributes
2021-09-21 10:41:37 +02:00
4b9827048f
adapt the templates in back ends
2021-09-20 15:51:36 +02:00
12dd1fd8dc
apply some suggestions from cppcheck
2021-09-12 13:25:03 +02:00
9f4176a8b6
resolve major compiler warnings produced by distutils
2021-07-27 11:06:06 +02:00
ae32a02652
pass max_str_len parameter also to read group_str
2021-06-14 14:36:19 +02:00
535d7ed019
enable operation on string attributes [text]
2021-06-11 18:15:30 +02:00
a40804be2e
fix leaking memory and avoid allocation of empty blocks
2021-06-11 14:46:24 +02:00