Push compatibility to HDF5 1.12
This commit is contained in:
parent
31d0f19408
commit
f03751907b
@ -123,10 +123,7 @@ void h5_read_runtime_parameters
|
||||
DataSpace memspace(rank, &dimens_1d);
|
||||
//memspace = H5Screate_simple(rank, &dimens_1d, NULL);
|
||||
|
||||
dataset.read(int_rt_parms, int_rt_type, memspace, dataspace,
|
||||
H5P_DEFAULT);
|
||||
//status = H5Dread(dataset, int_rt_type, memspace, dataspace,
|
||||
// H5P_DEFAULT, int_rt_parms);
|
||||
dataset.read(int_rt_parms, int_rt_type, memspace, dataspace);
|
||||
|
||||
|
||||
for (i = 0; i < nint_runtime_parameters; i++) {
|
||||
@ -167,10 +164,7 @@ void h5_read_runtime_parameters
|
||||
memspace = DataSpace(rank, &dimens_1d);
|
||||
//memspace = H5Screate_simple(rank, &dimens_1d, NULL);
|
||||
|
||||
dataset.read(real_rt_parms, real_rt_type, memspace, dataspace,
|
||||
H5P_DEFAULT);
|
||||
//status = H5Dread(dataset, real_rt_type, memspace, dataspace,
|
||||
// H5P_DEFAULT, real_rt_parms);
|
||||
dataset.read(real_rt_parms, real_rt_type, memspace, dataspace);
|
||||
|
||||
|
||||
for (i = 0; i < nreal_runtime_parameters; i++) {
|
||||
@ -289,9 +283,7 @@ void h5_read_flash3_particles (H5File* file,
|
||||
DataSpace memspace(rank, dimens_2d);
|
||||
//memspace = H5Screate_simple(rank, dimens_2d, NULL);
|
||||
|
||||
dataset.read(part_names, string_type, H5S_ALL, H5S_ALL, H5P_DEFAULT);
|
||||
//status = H5Dread(dataset, string_type, H5S_ALL, H5S_ALL,
|
||||
// H5P_DEFAULT, part_names);
|
||||
dataset.read(part_names, string_type);
|
||||
|
||||
|
||||
string_type.close();
|
||||
@ -374,8 +366,7 @@ void h5_read_flash3_particles (H5File* file,
|
||||
//memspace = H5Screate_simple(rank, dimens_2d, maxdimens_2d);
|
||||
|
||||
/* read data from the dataset */
|
||||
dataset.read(partBuffer, datatype, memspace, dataspace, H5P_DEFAULT);
|
||||
//status = H5Dread(dataset, datatype, memspace, dataspace, H5P_DEFAULT, partBuffer);
|
||||
dataset.read(partBuffer, datatype, memspace, dataspace);
|
||||
|
||||
/* convert buffer into particle struct */
|
||||
|
||||
@ -485,8 +476,7 @@ void h5_read_flash3_header_info(H5File* file,
|
||||
PredType::NATIVE_DOUBLE);
|
||||
|
||||
// read the data into 'real_list'
|
||||
dataset.read( real_list, real_list_type, memspace, dataspace,
|
||||
H5P_DEFAULT);
|
||||
dataset.read( real_list, real_list_type, memspace, dataspace);
|
||||
|
||||
|
||||
if (status < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user