From 91c73048a45a4a9029484a959e6c92c99a194a24 Mon Sep 17 00:00:00 2001 From: Scot Breitenfeld Date: Sat, 21 Oct 2023 23:07:28 -0500 Subject: [PATCH] added tests for h5pget_actual_selection_io_mode_f --- configure.ac | 2 +- fortran/testpar/hyper.F90 | 19 ++++++++++++++----- release_docs/RELEASE.txt | 3 ++- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index b8ff31457c3..44ab43a4664 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/fortran/testpar/hyper.F90 b/fortran/testpar/hyper.F90 index a2b302c1eff..ec3a657afbb 100644 --- a/fortran/testpar/hyper.F90 +++ b/fortran/testpar/hyper.F90 @@ -237,6 +237,20 @@ 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) @@ -244,11 +258,6 @@ SUBROUTINE hyper(length,do_collective,do_chunk, mpi_size, mpi_rank, 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) diff --git a/release_docs/RELEASE.txt b/release_docs/RELEASE.txt index 0239a9e356f..a6fedc429d9 100644 --- a/release_docs/RELEASE.txt +++ b/release_docs/RELEASE.txt @@ -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: