Skip to content

Commit

Permalink
Fixed failure on BE with xlf (HDFGroup#968)
Browse files Browse the repository at this point in the history
* fixed missed closing of a dataset

* fixed missed closing of a dataset

* fixed typo in error return

* Committing clang-format changes

* minor edits

* code format

* Committing clang-format changes

* code format

* minor edit

* switched from using MPI_count, to actual bytes written for H5FD_mpio_debug rw debugging

* Committing clang-format changes

* changed size_i in printf to reflect the I/O.

* Committing clang-format changes

* Fixed seg fault with xlf on BE with -qintsize=8

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
brtnfld and github-actions[bot] committed Aug 30, 2021
1 parent 131402a commit 794acf4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions fortran/test/tH5Z.F90
Expand Up @@ -192,7 +192,8 @@ SUBROUTINE szip_test(szip_flag, cleanup, total_error)
INTEGER(HSIZE_T), DIMENSION(2) :: chunk_dims = (/NN, MM/)
INTEGER :: rank = 2 ! Dataset rank

INTEGER, DIMENSION(N,M) :: dset_data, data_out ! Data buffers
INTEGER, DIMENSION(N,M) :: dset_data ! Data buffers
INTEGER, DIMENSION(:,:), ALLOCATABLE :: data_out ! Data buffers
INTEGER :: error ! Error flag
INTEGER :: num_errors = 0 ! Number of data errors

Expand Down Expand Up @@ -363,8 +364,9 @@ SUBROUTINE szip_test(szip_flag, cleanup, total_error)
!
! Read the dataset.
!
ALLOCATE(data_out(1:N,1:M))
CALL h5dread_f (dset_id, H5T_NATIVE_INTEGER, data_out, data_dims, error)
CALL check("h5dread_f", error, total_error)
CALL check("h5dread_f", error, total_error)

!
!Compare the data.
Expand All @@ -385,6 +387,7 @@ SUBROUTINE szip_test(szip_flag, cleanup, total_error)
100 IF (num_errors .GT. 0) THEN
total_error=total_error + 1
END IF
DEALLOCATE(data_out)

!
! End access to the dataset and release resources used by it.
Expand Down

0 comments on commit 794acf4

Please sign in to comment.