summaryrefslogtreecommitdiffstats
path: root/testpar/t_dset.c
diff options
context:
space:
mode:
Diffstat (limited to 'testpar/t_dset.c')
-rw-r--r--testpar/t_dset.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/testpar/t_dset.c b/testpar/t_dset.c
index 789d9a0..51b8a7a 100644
--- a/testpar/t_dset.c
+++ b/testpar/t_dset.c
@@ -2913,16 +2913,16 @@ test_actual_io_mode(int selection_mode)
int i;
MPI_Comm mpi_comm = MPI_COMM_NULL;
MPI_Info mpi_info = MPI_INFO_NULL;
- hid_t fid = -1;
- hid_t sid = -1;
- hid_t dataset = -1;
+ hid_t fid = H5I_INVALID_HID;
+ hid_t sid = H5I_INVALID_HID;
+ hid_t dataset = H5I_INVALID_HID;
hid_t data_type = H5T_NATIVE_INT;
- hid_t fapl = -1;
- hid_t mem_space = -1;
- hid_t file_space = -1;
- hid_t dcpl = -1;
- hid_t dxpl_write = -1;
- hid_t dxpl_read = -1;
+ hid_t fapl = H5I_INVALID_HID;
+ hid_t mem_space = H5I_INVALID_HID;
+ hid_t file_space = H5I_INVALID_HID;
+ hid_t dcpl = H5I_INVALID_HID;
+ hid_t dxpl_write = H5I_INVALID_HID;
+ hid_t dxpl_read = H5I_INVALID_HID;
hsize_t dims[RANK];
hsize_t chunk_dims[RANK];
hsize_t start[RANK];
@@ -3453,17 +3453,17 @@ test_no_collective_cause_mode(int selection_mode)
int i;
MPI_Comm mpi_comm;
MPI_Info mpi_info;
- hid_t fid = -1;
- hid_t sid = -1;
- hid_t dataset = -1;
+ hid_t fid = H5I_INVALID_HID;
+ hid_t sid = H5I_INVALID_HID;
+ hid_t dataset = H5I_INVALID_HID;
hid_t data_type = H5T_NATIVE_INT;
- hid_t fapl = -1;
- hid_t dcpl = -1;
- hid_t dxpl_write = -1;
- hid_t dxpl_read = -1;
+ hid_t fapl = H5I_INVALID_HID;
+ hid_t dcpl = H5I_INVALID_HID;
+ hid_t dxpl_write = H5I_INVALID_HID;
+ hid_t dxpl_read = H5I_INVALID_HID;
hsize_t dims[RANK];
- hid_t mem_space = -1;
- hid_t file_space = -1;
+ hid_t mem_space = H5I_INVALID_HID;
+ hid_t file_space = H5I_INVALID_HID;
hsize_t chunk_dims[RANK];
herr_t ret;
/* set to global value as default */