diff options
author | Quincey Koziol <koziol@koziol.gov> | 2019-08-19 23:48:06 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@koziol.gov> | 2019-08-19 23:48:06 (GMT) |
commit | f285c76ef25366e889d25ac8c223c91c080cf3b7 (patch) | |
tree | 431a73a9a731cb31d2ba49d5fd741b4340d7a68d /src/H5Fmpi.c | |
parent | df36318b5f338d469db0086151d86601236e922a (diff) | |
download | hdf5-f285c76ef25366e889d25ac8c223c91c080cf3b7.zip hdf5-f285c76ef25366e889d25ac8c223c91c080cf3b7.tar.gz hdf5-f285c76ef25366e889d25ac8c223c91c080cf3b7.tar.bz2 |
First pass of converting H5PB_* routines to use shared file pointers.
Diffstat (limited to 'src/H5Fmpi.c')
-rw-r--r-- | src/H5Fmpi.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/H5Fmpi.c b/src/H5Fmpi.c index 12bcbc0..56f9547 100644 --- a/src/H5Fmpi.c +++ b/src/H5Fmpi.c @@ -170,6 +170,38 @@ done: /*------------------------------------------------------------------------- + * Function: H5F_shared_mpi_get_size + * + * Purpose: Retrieves the size of an MPI process. + * + * Return: Success: The size (positive) + * + * Failure: Negative + * + * Programmer: John Mainzer + * Friday, May 6, 2005 + * + *------------------------------------------------------------------------- + */ +int +H5F_shared_mpi_get_size(const H5F_file_t *f_sh) +{ + int ret_value = -1; + + FUNC_ENTER_NOAPI((-1)) + + HDassert(f_sh); + + /* Dispatch to driver */ + if((ret_value = H5FD_mpi_get_size(f_sh->lf)) < 0) + HGOTO_ERROR(H5E_VFL, H5E_CANTGET, (-1), "driver get_size request failed") + +done: + FUNC_LEAVE_NOAPI(ret_value) +} /* end H5F_shared_mpi_get_size() */ + + +/*------------------------------------------------------------------------- * Function: H5F_mpi_get_size * * Purpose: Retrieves the size of an MPI process. |