Skip to content

Commit 4c1107c

Browse files
committed
dcpl name
1 parent f18858a commit 4c1107c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/write/write.f90

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
logical :: exists
1616
integer :: ierr
17-
integer(HID_T) :: plist_id, ds_id
17+
integer(HID_T) :: dcpl, ds_id
1818

19-
plist_id = H5P_DEFAULT_F
19+
dcpl = H5P_DEFAULT_F
2020
memspace = H5S_ALL_F
2121

2222
if(.not.self%is_open) error stop 'h5fortran:write: file handle is not open: ' // self%filename
@@ -55,18 +55,18 @@
5555

5656
!> compression
5757
if(size(mem_dims) >= 2) then
58-
call set_deflate(self, mem_dims, plist_id, chunk_size)
58+
call set_deflate(self, mem_dims, dcpl, chunk_size)
5959
endif
6060

6161
!> compact dataset (for very small datasets to increase I/O speed)
6262
if(present(compact)) then
6363
!! datasets are EITHER compact or chunked.
64-
if(compact .and. plist_id == H5P_DEFAULT_F .and. product(dset_dims) * 8 < 60000) then
64+
if(compact .and. dcpl == H5P_DEFAULT_F .and. product(dset_dims) * 8 < 60000) then
6565
!! 64000 byte limit, here we assumed 8 bytes / element
66-
call h5pcreate_f(H5P_DATASET_CREATE_F, plist_id, ierr)
66+
call h5pcreate_f(H5P_DATASET_CREATE_F, dcpl, ierr)
6767
if (check(ierr, self%filename)) error stop "h5fortran:hdf_create:h5pcreate: " // dname
6868

69-
call h5pset_layout_f(plist_id, H5D_COMPACT_F, ierr)
69+
call h5pset_layout_f(dcpl, H5D_COMPACT_F, ierr)
7070
if (check(ierr, self%filename)) error stop "h5fortran:hdf_create:h5pset_layout: " // dname
7171
endif
7272
endif
@@ -80,10 +80,10 @@
8080
if (ierr/=0) error stop "h5fortran:hdf_create:h5screate:filespace " // dname // " " // self%filename
8181

8282
!> create dataset
83-
call h5dcreate_f(self%file_id, dname, dtype, space_id=filespace, dset_id=dset_id, hdferr=ierr, dcpl_id=plist_id)
83+
call h5dcreate_f(self%file_id, dname, dtype, space_id=filespace, dset_id=dset_id, hdferr=ierr, dcpl_id=dcpl)
8484
if (ierr/=0) error stop "h5fortran:hdf_create:h5dcreate: " // dname // " " // self%filename
8585

86-
call h5pclose_f(plist_id, ierr)
86+
call h5pclose_f(dcpl, ierr)
8787
if (ierr/=0) error stop "h5pclose: " // dname // ' in ' // self%filename
8888

8989
end procedure hdf_create

0 commit comments

Comments
 (0)