|
3 | 3 | use hdf5, only: & |
4 | 4 | h5screate_f, H5S_SCALAR_F, & |
5 | 5 | h5dcreate_f, & |
6 | | -h5pset_chunk_f, h5pset_deflate_f, h5pset_shuffle_f, h5pcreate_f, H5P_DATASET_CREATE_F, h5pclose_f, & |
| 6 | +h5pset_chunk_f, h5pset_deflate_f, h5pset_shuffle_f, h5pset_fletcher32_f, h5pcreate_f, H5P_DATASET_CREATE_F, h5pclose_f, & |
7 | 7 | h5gopen_f, h5gclose_f |
8 | 8 |
|
9 | 9 | use H5LT, only: h5ltpath_valid_f, h5ltset_attribute_string_f, h5ltmake_dataset_string_f |
@@ -125,6 +125,9 @@ subroutine hdf_set_deflate(self, dims, pid, ierr, chunk_size) |
125 | 125 | call h5pset_shuffle_f(pid, ierr) |
126 | 126 | if (check(ierr, 'ERROR: enable Shuffle ' // self%filename)) return |
127 | 127 |
|
| 128 | +call h5pset_fletcher32_f(pid, ierr) |
| 129 | +if (check(ierr, 'ERROR: enable Fletcher32 checksum ' // self%filename)) return |
| 130 | + |
128 | 131 | call h5pset_deflate_f(pid, self%comp_lvl, ierr) |
129 | 132 | if (check(ierr, 'ERROR: enable Deflate compression ' // self%filename)) return |
130 | 133 |
|
@@ -158,7 +161,8 @@ subroutine guess_chunk_size(dims, chunk_size) |
158 | 161 | dset_size = product(chunk_size) * TYPESIZE |
159 | 162 | target_size = int(CHUNK_BASE * (2**log10(real(dset_size) / 1e6)), hsize_t) |
160 | 163 | if (target_size > CHUNK_MAX) target_size = CHUNK_MAX |
161 | | -print *,'target_size [bytes]: ',target_size |
| 164 | + |
| 165 | +! print *,'target_size [bytes]: ',target_size |
162 | 166 |
|
163 | 167 | i = 0 |
164 | 168 | do |
|
0 commit comments