summaryrefslogtreecommitdiffstats
path: root/src/H5Fmpi.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@koziol.gov>2019-08-19 23:48:06 (GMT)
committerQuincey Koziol <koziol@koziol.gov>2019-08-19 23:48:06 (GMT)
commitf285c76ef25366e889d25ac8c223c91c080cf3b7 (patch)
tree431a73a9a731cb31d2ba49d5fd741b4340d7a68d /src/H5Fmpi.c
parentdf36318b5f338d469db0086151d86601236e922a (diff)
downloadhdf5-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.c32
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.