Retrieves the atomicity mode in use
Procedure:
H5F_GET_MPI_ATOMICITY (file_id, flag)
Signature:
herr_t H5Fget_mpi_atomicity( hid_t file_id, hbool_t *flag )
SUBROUTINE h5fget_mpi_atomicity_f(file_id, flag, hdferr)
IMPLICIT NONE
INTEGER(HID_T), INTENT(IN) :: file_id ! File identifier
INTEGER(HBOOL_T), INTENT(OUT) :: flag ! Atomicity flag
INTEGER, INTENT(OUT) :: hdferr ! Error code:
! 0 on success, -1 on failure
END SUBROUTINE h5fget_mpi_atomicity_f
Parameters:
hid_t file_id | IN: HDF5 file identifier |
hbool_t *flag | OUT: Logical flag for atomicity setting Valid values are:(1) MPI file access is set to atomic mode.(0) MPI file access is set to nonatomic mode.
|
Description:
H5F_GET_MPI_ATOMICITY retrieves the current consistency semantics mode for data access for the file file_id
.
Upon successful return, flag
will be set to 1
if file access is set to atomic mode and 0
if file access is set to nonatomic mode.
Returns:
Returns a non-negative value if successful; otherwise returns a negative value.
See Also:
Example:
History:
Release | Change |
---|
1.8.9 | C function and Fortran subroutine introduced in this release |
--- Last Modified: July 22, 2020 | 02:40 PM