diff options
author | Quincey Koziol <koziol@koziol.gov> | 2019-06-21 21:56:11 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@koziol.gov> | 2019-06-21 21:56:11 (GMT) |
commit | 3dcc89625cf996d6166dc65e4c2d4c703b687424 (patch) | |
tree | 5a8eaea580f284cf52e081052b5a204678e78140 | |
parent | 1ccbdfee589d9f56d71983506313879fa47c4e90 (diff) | |
parent | 8eabdd28af1c7f058588e634a2d4fbaab3bb81f1 (diff) | |
download | hdf5-3dcc89625cf996d6166dc65e4c2d4c703b687424.zip hdf5-3dcc89625cf996d6166dc65e4c2d4c703b687424.tar.gz hdf5-3dcc89625cf996d6166dc65e4c2d4c703b687424.tar.bz2 |
Merge branch 'develop' into feature/update_gcc_flags
-rw-r--r-- | src/H5Dmpio.c | 5 | ||||
-rw-r--r-- | testpar/t_filters_parallel.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/H5Dmpio.c b/src/H5Dmpio.c index ee8bde2..467b1b7 100644 --- a/src/H5Dmpio.c +++ b/src/H5Dmpio.c @@ -2806,8 +2806,9 @@ H5D__chunk_redistribute_shared_chunks(const H5D_io_info_t *io_info, const H5D_ty /* Sort the new list in order of previous owner so that each original owner of a chunk * entry gets that entry back, with the possibly newly-modified "new_owner" field */ - HDqsort(shared_chunks_info_array, shared_chunks_info_array_num_entries, - sizeof(H5D_filtered_collective_io_info_t), H5D__cmp_filtered_collective_io_info_entry_owner); + if(shared_chunks_info_array_num_entries > 1) + HDqsort(shared_chunks_info_array, shared_chunks_info_array_num_entries, + sizeof(H5D_filtered_collective_io_info_t), H5D__cmp_filtered_collective_io_info_entry_owner); send_displacements[0] = 0; for (i = 1; i < (size_t) mpi_size; i++) diff --git a/testpar/t_filters_parallel.c b/testpar/t_filters_parallel.c index 1f26e0d..db5bd13 100644 --- a/testpar/t_filters_parallel.c +++ b/testpar/t_filters_parallel.c @@ -3683,6 +3683,8 @@ test_read_filtered_dataset_point_selection(void) if (read_buf) HDfree(read_buf); if (correct_buf) HDfree(correct_buf); + HDfree(coords); + VRFY((H5Dclose(dset_id) >= 0), "Dataset close succeeded"); VRFY((H5Sclose(filespace) >= 0), "File dataspace close succeeded"); VRFY((H5Sclose(memspace) >= 0), "Memory dataspace close succeeded"); @@ -5791,6 +5793,9 @@ test_write_parallel_read_serial(void) VRFY((H5Dclose(dset_id) >= 0), "Dataset close succeeded"); VRFY((H5Fclose(file_id) >= 0), "File close succeeded"); + + HDfree(correct_buf); + HDfree(read_buf); } return; |