Skip to content
Snippets Groups Projects
Commit 4ad3e1cc authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Removed unnecessary variable definitions.

parent 2c63036a
No related branches found
No related tags found
1 merge request!453Large hdf5 reads
...@@ -176,19 +176,6 @@ void readArray(hid_t grp, struct io_props props, size_t N, long long N_total, ...@@ -176,19 +176,6 @@ void readArray(hid_t grp, struct io_props props, size_t N, long long N_total,
} }
} }
/* Work out properties of the array in the file */
int rank;
hsize_t shape_total[2];
if (props.dimension > 1) {
rank = 2;
shape_total[0] = N_total;
shape_total[1] = props.dimension;
} else {
rank = 1;
shape_total[0] = N_total;
shape_total[1] = 0;
}
/* Open data space in file */ /* Open data space in file */
const hid_t h_data = H5Dopen2(grp, props.name, H5P_DEFAULT); const hid_t h_data = H5Dopen2(grp, props.name, H5P_DEFAULT);
if (h_data < 0) error("Error while opening data space '%s'.", props.name); if (h_data < 0) error("Error while opening data space '%s'.", props.name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment