1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-11-03 20:54:07 +01:00
Commit Graph

131 Commits

Author SHA1 Message Date
fafb155228 return the number of read elements if read_sparse reached EOF 2021-12-16 11:05:57 +01:00
ba758e991f improve tests 2021-12-14 17:46:04 +01:00
b90abcc307 fix memory leak in the Fortran test 2021-12-13 09:59:27 +01:00
9f5ee463e1 only shift indices that have been read to the buffer (EOF case) 2021-12-10 14:02:05 +01:00
7afb53be49 implement shift of sparse indices to be one-based in Fortran 2021-12-10 11:34:37 +01:00
2731b5dd6b add tests for I/O of floating point attributes 2021-12-09 16:23:22 +01:00
e00f3b106e working HDF5 I/O for sparse indices 2021-12-09 16:13:28 +01:00
e774cb6852 add read_size function to HDF5 back end 2021-12-09 14:10:51 +01:00
ddcfff0f83 add the unit test for HDF5 back end 2021-12-08 17:24:16 +01:00
46a381550e adapt Fortran test to proper indices for sparse data 2021-12-07 14:43:42 +01:00
1ad20c1cb9 add a test of reading a chunk that can reach EOF 2021-12-03 19:24:49 +01:00
1bb8ae5b67 unit testing for sparse data in C 2021-12-03 11:06:31 +01:00
7e83e6698d add Fortran test for reading sparse data size 2021-12-02 17:35:06 +01:00
f9fd18caa3 add assert to check the read values 2021-12-01 13:36:29 +01:00
c30c3a532c add Fortran interface for sparse data 2021-12-01 13:35:42 +01:00
83c926fd6b replace offset_data arg with pointer arithmetics 2021-12-01 09:56:31 +01:00
db4b66d81d [WIP] add C test for sparse I/O in text back end 2021-11-30 16:33:30 +01:00
72c355c7cc Top-level CMakeLists with subdirectories 2021-11-17 14:00:35 +01:00
e18dcd5c4a conditional HDF5 tests based on the trexio_has_backend function 2021-11-02 11:06:03 +01:00
c24484b86a adapt tests to optional HDF5 2021-11-01 11:57:03 +01:00
7459589701 adapt the tests to use basis_shell_num 2021-10-21 15:52:12 +02:00
db35b102ed fix tests broken due to new dimension of basis_nucleus_index 2021-10-19 10:22:08 +02:00
fb9c95bd61 add version attributes to the Fortran module 2021-10-08 13:55:56 +02:00
8ef0c1963f add unit tests in C for trexio_open errors 2021-09-22 16:43:18 +02:00
9457a826d2 return error code from trexio_open [C, Fortran] 2021-09-22 14:50:22 +02:00
187b15ddd6 fix io_num tests 2021-09-22 11:41:29 +02:00
788f7e666d read single numerical attributes based on _isSet bool flag 2021-09-21 15:41:12 +02:00
2854d617d4 make python directory and adapt build process 2021-08-05 12:55:18 +03:00
60c28c1f3b rename python test and add temporary TODO 2021-08-04 14:13:23 +03:00
da5a990acc add memory-safe API for numerical datasets 2021-07-28 10:19:00 +02:00
58c6de9963 shift values in the basic_nucleus_index array 2021-06-23 16:51:33 +02:00
05eb291ed4 rename TREXIO files to execute tests in parallel 2021-06-22 17:57:34 +02:00
2ba109a404 add tests for open/close 2021-06-22 15:59:35 +02:00
5cc1d13c36 add C unit tests 2021-06-21 12:55:16 +02:00
c010331114 fix names and typos 2021-06-21 12:51:21 +02:00
91319ec3e8 ignore produced binary and .o test files 2021-06-21 12:49:59 +02:00
d4f0b731a5 add assert to read 2021-06-21 09:28:37 +02:00
dfa2604820 complete num attribute testing 2021-06-18 12:53:00 +02:00
fd424c2149 [WIP] unit testing for C API 2021-06-17 17:20:01 +02:00
ac45a937af Merge branch 'master' into add-strings 2021-06-15 11:49:42 +02:00
0909a128d2 minor cleaning in the C test 2021-06-15 11:26:22 +02:00
da188dbea0 add top-level read/write functions for single strings [fortran] 2021-06-15 11:26:03 +02:00
b92a15cce7 add top-level read/write functions for string arrays [fortran] 2021-06-15 10:20:01 +02:00
5553e9110e add top-level read/write functions that accept arrays of strings directly 2021-06-14 15:40:26 +02:00
4287d76de2 introduce calls to trexio_assert and trexio_strarray2str subroutines 2021-06-14 11:54:10 +02:00
2c4555b7bb C test adapted for string attributes [text] 2021-06-11 18:17:27 +02:00
2b3e79054a [WIP] working pieces for read_dset_str [text] 2021-06-10 16:34:16 +02:00
bec752361c Index OK 2021-06-10 01:49:43 +02:00
5abac3fec2 [WIP] working write dset of strings, but with memory leak [text] 2021-06-09 18:10:59 +02:00
aea68540c2 working tests [front,hdf5] 2021-06-08 16:13:11 +02:00
4fd3c05d79 add test for truncating strings using max_str_len argument of read_ 2021-06-08 14:39:41 +02:00
36e85039d5 make file names consistent with the C test 2021-06-08 14:39:04 +02:00
3331cc0591 adapt tests to use max_str_len for a single string 2021-06-08 10:46:20 +02:00
625cbc3d20 update gitignore 2021-06-08 09:25:07 +02:00
ba0f45d4aa adapt tests to assert-like behaviour 2021-06-07 11:17:02 +02:00
231fe479e7 inline with master branch 2021-06-07 11:01:37 +02:00
8fb44d585c fix tests 2021-06-04 18:42:52 +02:00
ea9ffaea43 Fix fortran tests 2021-06-04 18:14:45 +02:00
d57f2004ba Merge branch 'master' into add-strings 2021-06-04 18:09:26 +02:00
02d2561d73 add tests for string attributes 2021-06-04 15:36:56 +02:00
f1f47f4369 minor cleaning 2021-06-04 09:43:56 +02:00
c160de1a1b adapt tests to use max_str_len parameter 2021-06-03 16:13:57 +02:00
313ab12c61 adapt tests to use TREXIO_DELIM as a delimeter 2021-06-03 13:42:56 +02:00
06153d10cc add C test for file reopening to write missing blocks 2021-06-02 20:22:34 +02:00
f5542571d1 remove test of append mode 2021-06-02 14:34:49 +02:00
8f570d2fd9 fix C test 2021-06-02 14:24:27 +02:00
3a6e7c93af Function prototypes in tests 2021-06-02 10:27:11 +02:00
196224c63b use newline character as a delimeter for array of strings 2021-06-01 18:12:15 +02:00
69ffb6c3b5 Tests fail 2021-06-01 15:03:37 +02:00
13fe1e8690 [WIP] working tests with string converters 2021-06-01 14:59:08 +02:00
9142c21130 add C test for nucleus_label 2021-05-31 16:37:00 +02:00
8b580fee4a Automake done. Need to improve tests 2021-05-28 13:36:39 +02:00
57655a8344 add error message for an attempt to overwrite dimensioning variables 2021-05-06 17:44:31 +02:00
f7dea1fd1c Fixed configure and install 2021-05-05 11:37:48 +02:00
03f58a649e fixed make install and introduced uninstall targets 2021-05-03 15:15:49 +02:00
15f4e56690 update gitignore 2021-05-03 15:06:30 +02:00
3274
77289f1001 fix linking to lib directory 2021-04-30 19:39:09 +02:00
4578fb1a2b adapt rules for new structure of the root directory 2021-04-30 19:04:43 +02:00
355c86ba66 add gitignore 2021-04-30 15:58:08 +02:00
05f565cdb5 Makefile for tests 2021-04-30 15:53:11 +02:00
1e9581e2d2 move tests to the corresponding directory 2021-04-30 15:50:05 +02:00