Skip to content

Commit a105c91

Browse files
committed
get_deflate: UX: %deflate() requires %open(mpi=.false.)
1 parent acf1e3b commit a105c91

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/interface.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ subroutine ph5open(self, filename, action, mpi, comp_lvl, shuffle, fletcher32, d
358358
case ('w')
359359
call h5fcreate_f(filename, H5F_ACC_TRUNC_F, self%file_id, ierr, access_prp=fapl)
360360
case default
361-
error stop 'h5fortran: Unsupported open(..., action= ' // laction
361+
error stop 'h5fortran:open Unsupported action= ' // laction
362362
end select
363363

364364
if(ierr/=0) error stop "h5open/create: could not initialize HDF5 file: " // filename // " action: " // laction

src/read/read.f90

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949

5050
logical :: debug = .false.
5151

52+
if(self%use_mpi) error stop "h5fortran:get_deflate: must not have mpi=.true. => %open(mpi=.false.) to use %deflate()"
53+
5254
Naux = size(Aux, kind=SIZE_T)
5355

5456
call h5dopen_f(self%file_id, dname, dset_id, ierr)

0 commit comments

Comments
 (0)