wrong check
iand is used for checking, see https://support.hdfgroup.org/HDF5/doc/RM/H5Z/H5Zget_filter_info.htm
This commit is contained in:
parent
731e20261c
commit
c818756f68
|
@ -137,7 +137,7 @@ subroutine HDF5_utilities_init
|
||||||
if (avail) then
|
if (avail) then
|
||||||
call H5Zget_filter_info_f(H5Z_FILTER_DEFLATE_F,configFlags,hdferr)
|
call H5Zget_filter_info_f(H5Z_FILTER_DEFLATE_F,configFlags,hdferr)
|
||||||
if (hdferr < 0) error stop 'HDF5 error'
|
if (hdferr < 0) error stop 'HDF5 error'
|
||||||
compression_possible = compression_possible .and. ior(H5Z_FILTER_ENCODE_ENABLED_F,configFlags) > 0
|
compression_possible = compression_possible .and. iand(H5Z_FILTER_ENCODE_ENABLED_F,configFlags) > 0
|
||||||
end if
|
end if
|
||||||
|
|
||||||
call H5Zfilter_avail_f(H5Z_FILTER_SHUFFLE_F,avail,hdferr)
|
call H5Zfilter_avail_f(H5Z_FILTER_SHUFFLE_F,avail,hdferr)
|
||||||
|
@ -147,7 +147,7 @@ subroutine HDF5_utilities_init
|
||||||
if (avail) then
|
if (avail) then
|
||||||
call H5Zget_filter_info_f(H5Z_FILTER_SHUFFLE_F,configFlags,hdferr)
|
call H5Zget_filter_info_f(H5Z_FILTER_SHUFFLE_F,configFlags,hdferr)
|
||||||
if (hdferr < 0) error stop 'HDF5 error'
|
if (hdferr < 0) error stop 'HDF5 error'
|
||||||
compression_possible = compression_possible .and. ior(H5Z_FILTER_ENCODE_ENABLED_F,configFlags) > 0
|
compression_possible = compression_possible .and. iand(H5Z_FILTER_ENCODE_ENABLED_F,configFlags) > 0
|
||||||
end if
|
end if
|
||||||
|
|
||||||
end subroutine HDF5_utilities_init
|
end subroutine HDF5_utilities_init
|
||||||
|
|
Loading…
Reference in New Issue