Skip to content

Commit

Permalink
added tests for h5pget_actual_selection_io_mode_f
Browse files Browse the repository at this point in the history
  • Loading branch information
brtnfld committed Oct 22, 2023
1 parent 0c43a26 commit 91c7304
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
## ----------------------------------------------------------------------
## Initialize configure.
##
AC_PREREQ([2.69])
AC_PREREQ([2.71])

## AC_INIT takes the name of the package, the version number, and an
## email address to report bugs. AC_CONFIG_SRCDIR takes a unique file
Expand Down
19 changes: 14 additions & 5 deletions fortran/testpar/hyper.F90
Original file line number Diff line number Diff line change
Expand Up @@ -237,18 +237,27 @@ SUBROUTINE hyper(length,do_collective,do_chunk, mpi_size, mpi_rank, nerrors)
CALL h5dwrite_f(dset_id,H5T_NATIVE_INTEGER,wbuf,dims,hdferror,file_space_id=fspace_id,mem_space_id=mspace_id,xfer_prp=dxpl_id)
CALL check("h5dwrite_f", hdferror, nerrors)

CALL h5pget_actual_selection_io_mode_f(dxpl_id, actual_selection_io_mode, hdferror)
CALL check("h5pget_actual_selection_io_mode_f", hdferror, nerrors)
IF(do_collective)THEN
IF(actual_selection_io_mode .NE. H5D_SELECTION_IO_F)THEN
PRINT*, "Incorrect actual selection io mode"
nerrors = nerrors + 1
ENDIF
ELSE
IF(actual_selection_io_mode .NE. IOR(H5D_SELECTION_IO_F, H5D_SCALAR_IO_F))THEN
PRINT*, "Incorrect actual selection io mode"
nerrors = nerrors + 1
ENDIF
ENDIF

! Check h5pget_mpio_actual_io_mode_f function
CALL h5pget_mpio_actual_io_mode_f(dxpl_id, actual_io_mode, hdferror)
CALL check("h5pget_mpio_actual_io_mode_f", hdferror, nerrors)

CALL h5pget_mpio_no_collective_cause_f(dxpl_id, local_no_collective_cause, global_no_collective_cause, hdferror)
CALL check("h5pget_mpio_no_collective_cause_f", hdferror, nerrors)

CALL h5pget_actual_selection_io_mode_f(dxpl_id, actual_selection_io_mode, hdferror)
CALL check("h5pget_actual_selection_io_mode_f", hdferror, nerrors)
!PRINT*,actual_selection_io_mode
!CALL VERIFY("h5pget_actual_selection_io_mode_f", actual_selection_io_mode, H5D_SCALAR_IO_F, nerrors)

IF(do_collective) THEN
IF(local_no_collective_cause .NE. H5D_MPIO_COLLECTIVE_F) &
CALL check("h5pget_mpio_no_collective_cause_f", -1, nerrors)
Expand Down
3 changes: 2 additions & 1 deletion release_docs/RELEASE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ New Features
- Fortran async APIs H5A, H5D, H5ES, H5G, H5F, H5L and H5O were added.

- Added Fortran APIs:
h5pset_selection_io_f, h5pget_selection_io_f
h5pset_selection_io_f, h5pget_selection_io_f,
h5pget_actual_selection_io_mode_f,
h5pset_modify_write_buf_f, h5pget_modify_write_buf_f

- Added Fortran APIs:
Expand Down

0 comments on commit 91c7304

Please sign in to comment.