summaryrefslogtreecommitdiffstats
path: root/src/H5Dmpio.c
diff options
context:
space:
mode:
authorJordan Henderson <jhenderson@hdfgroup.org>2017-04-10 14:44:19 (GMT)
committerJordan Henderson <jhenderson@hdfgroup.org>2017-04-10 14:44:19 (GMT)
commit7883c0d01b4eadba84697c7bb3322a304d242ed6 (patch)
treee786c4352da5bf6e2b47d71085fe627560385cf6 /src/H5Dmpio.c
parentb314f57e23ea25b82bebe4f514f14f878436c36f (diff)
downloadhdf5-7883c0d01b4eadba84697c7bb3322a304d242ed6.zip
hdf5-7883c0d01b4eadba84697c7bb3322a304d242ed6.tar.gz
hdf5-7883c0d01b4eadba84697c7bb3322a304d242ed6.tar.bz2
Add comments
Diffstat (limited to 'src/H5Dmpio.c')
-rw-r--r--src/H5Dmpio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/H5Dmpio.c b/src/H5Dmpio.c
index 7dee025..e6fbb6a 100644
--- a/src/H5Dmpio.c
+++ b/src/H5Dmpio.c
@@ -398,12 +398,12 @@ H5D__mpio_array_gatherv(void *local_array, size_t local_array_num_entries,
if (MPI_SUCCESS != (mpi_code = MPI_Allgatherv(local_array, sendcount, MPI_BYTE,
gathered_array, receive_counts_array, displacements_array, MPI_BYTE, comm)))
HMPI_GOTO_ERROR(FAIL, "MPI_Allgatherv failed", mpi_code)
- }
+ } /* end if */
else {
if (MPI_SUCCESS != (mpi_code = MPI_Gatherv(local_array, sendcount, MPI_BYTE,
gathered_array, receive_counts_array, displacements_array, MPI_BYTE, root, comm)))
HMPI_GOTO_ERROR(FAIL, "MPI_Allgatherv failed", mpi_code)
- }
+ } /* end else */
if (sort_func) HDqsort(gathered_array, gathered_array_num_entries, array_entry_size, sort_func);
} /* end if */
@@ -2590,6 +2590,7 @@ H5D__construct_filtered_io_info_list(const H5D_io_info_t *io_info, const H5D_typ
if ((mpi_size = H5F_mpi_get_size(io_info->dset->oloc.file)) < 0)
HGOTO_ERROR(H5E_IO, H5E_MPI, FAIL, "unable to obtain mpi size")
+ /* Each process builds a local list of the chunks they have selected */
if ((num_chunks_selected = H5SL_count(fm->sel_chunks))) {
H5D_chunk_info_t *chunk_info;
H5D_chunk_ud_t udata;