diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2019-08-26 17:26:31 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2019-08-26 17:26:31 (GMT) |
commit | 3bcbce5538eb334948311c5afeaef7c050056dca (patch) | |
tree | 6cd5acd99efe330d33fbc775ed88ea40b73ce684 /src/H5Fmpi.c | |
parent | 884ad149e29f7c99487af676f0bbcd88cbf2735f (diff) | |
download | hdf5-3bcbce5538eb334948311c5afeaef7c050056dca.zip hdf5-3bcbce5538eb334948311c5afeaef7c050056dca.tar.gz hdf5-3bcbce5538eb334948311c5afeaef7c050056dca.tar.bz2 |
Added H5Pset/get_mpi_params calls and unified them with the MPI-I/O
VFD info in H5FDmpio.c.
Diffstat (limited to 'src/H5Fmpi.c')
-rw-r--r-- | src/H5Fmpi.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/H5Fmpi.c b/src/H5Fmpi.c index 470241b..bb422ac 100644 --- a/src/H5Fmpi.c +++ b/src/H5Fmpi.c @@ -368,14 +368,9 @@ H5F_mpi_retrieve_comm(hid_t loc_id, hid_t acspl_id, MPI_Comm *mpi_comm) if(NULL == (plist = H5P_object_verify(acspl_id, H5P_FILE_ACCESS))) HGOTO_ERROR(H5E_FILE, H5E_BADTYPE, FAIL, "not a file access list") - if(H5FD_MPIO == H5P_peek_driver(plist)) { - const H5FD_mpio_fapl_t *fa; /* MPIO fapl info */ - - if(NULL == (fa = (const H5FD_mpio_fapl_t *)H5P_peek_driver_info(plist))) - HGOTO_ERROR(H5E_FILE, H5E_BADVALUE, FAIL, "bad VFL driver info") - - *mpi_comm = fa->comm; - } + if(H5FD_MPIO == H5P_peek_driver(plist)) + if(H5P_peek(plist, H5F_ACS_MPI_PARAMS_COMM_NAME, mpi_comm) < 0) + HGOTO_ERROR(H5E_FILE, H5E_CANTGET, FAIL, "can't get MPI communicator") } done: |