Commit 4085f742 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Recover the data type in HDF5 only once per array.

parent 3223fd5b
......@@ -105,7 +105,7 @@ void readArrayBackEnd(hid_t grp, char* name, enum DATA_TYPE type, int N,
// error("Non-matching types between the code and the file");
/* Allocate temporary buffer */
temp = malloc(N * dim * sizeOfType(type));
temp = malloc(N * dim * typeSize);
if (temp == NULL) error("Unable to allocate memory for temporary buffer");
/* Read HDF5 dataspace in temporary buffer */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment