@@ -54,9 +54,9 @@ module h5mpi
54
54
procedure , public :: is_open
55
55
! ! procedures without mapping
56
56
57
- generic, public :: write = > h5write_scalar,ph5write_1d, ph5write_2d, ph5write_3d, ph5write_4d, ph5write_5d, ph5write_6d, ph5write_7d
57
+ generic, public :: write = > h5write_scalar, h5write_1d, h5write_2d, h5write_3d, h5write_4d, h5write_5d, h5write_6d, h5write_7d
58
58
59
- generic, public :: read = > h5read_scalar, ph5read_1d, ph5read_2d, ph5read_3d, ph5read_4d, ph5read_5d, ph5read_6d, ph5read_7d
59
+ generic, public :: read = > h5read_scalar, h5read_1d, h5read_2d, h5read_3d, h5read_4d, h5read_5d, h5read_6d, h5read_7d
60
60
! ! mapped procedures
61
61
62
62
! > write attributes
@@ -67,9 +67,9 @@ module h5mpi
67
67
68
68
procedure , private :: writeattr_char, writeattr_num, readattr_char, readattr_num
69
69
70
- procedure , private :: h5write_scalar, ph5write_1d, ph5write_2d, ph5write_3d, ph5write_4d, ph5write_5d, ph5write_6d, ph5write_7d
70
+ procedure , private :: h5write_scalar, h5write_1d, h5write_2d, h5write_3d, h5write_4d, h5write_5d, h5write_6d, h5write_7d
71
71
72
- procedure , private :: h5read_scalar, ph5read_1d, ph5read_2d, ph5read_3d, ph5read_4d, ph5read_5d, ph5read_6d, ph5read_7d
72
+ procedure , private :: h5read_scalar, h5read_1d, h5read_2d, h5read_3d, h5read_4d, h5read_5d, h5read_6d, h5read_7d
73
73
! ! mapped procedures must be declared again like this
74
74
75
75
! > flush file to disk and close file if user forgets to do so.
@@ -144,75 +144,75 @@ module subroutine h5write_scalar(self, dname, value, compact)
144
144
logical , intent (in ), optional :: compact
145
145
end subroutine h5write_scalar
146
146
147
- module subroutine ph5write_1d (self , dname , value , dset_dims , istart , iend , chunk_size , compact )
147
+ module subroutine h5write_1d (self , dname , value , dset_dims , istart , iend , chunk_size , compact )
148
148
class(hdf5_file), intent (in ) :: self
149
149
character (* ), intent (in ) :: dname
150
150
class(* ), intent (in ) :: value(:)
151
151
class(* ), intent (in ), dimension (1 ), optional :: dset_dims ! < integer or integer(HSIZE_T) full disk shape (not just per worker)
152
152
integer (HSIZE_T), intent (in ), dimension (1 ), optional :: istart, iend
153
153
integer , intent (in ), dimension (1 ), optional :: chunk_size
154
154
logical , intent (in ), optional :: compact
155
- end subroutine ph5write_1d
155
+ end subroutine h5write_1d
156
156
157
- module subroutine ph5write_2d (self , dname , value , dset_dims , istart , iend , chunk_size , compact )
157
+ module subroutine h5write_2d (self , dname , value , dset_dims , istart , iend , chunk_size , compact )
158
158
class(hdf5_file), intent (in ) :: self
159
159
character (* ), intent (in ) :: dname
160
160
class(* ), intent (in ) :: value(:,:)
161
161
class(* ), intent (in ), dimension (2 ), optional :: dset_dims
162
162
integer (HSIZE_T), intent (in ), dimension (2 ), optional :: istart, iend
163
163
integer , intent (in ), dimension (2 ), optional :: chunk_size
164
164
logical , intent (in ), optional :: compact
165
- end subroutine ph5write_2d
165
+ end subroutine h5write_2d
166
166
167
- module subroutine ph5write_3d (self , dname , value , dset_dims , istart , iend , chunk_size , compact )
167
+ module subroutine h5write_3d (self , dname , value , dset_dims , istart , iend , chunk_size , compact )
168
168
class(hdf5_file), intent (in ) :: self
169
169
character (* ), intent (in ) :: dname
170
170
class(* ), intent (in ) :: value(:,:,:)
171
171
class(* ), intent (in ), dimension (3 ), optional :: dset_dims
172
172
integer (HSIZE_T), intent (in ), dimension (3 ), optional :: istart, iend
173
173
integer , intent (in ), dimension (3 ), optional :: chunk_size
174
174
logical , intent (in ), optional :: compact
175
- end subroutine ph5write_3d
175
+ end subroutine h5write_3d
176
176
177
- module subroutine ph5write_4d (self , dname , value , dset_dims , istart , iend , chunk_size , compact )
177
+ module subroutine h5write_4d (self , dname , value , dset_dims , istart , iend , chunk_size , compact )
178
178
class(hdf5_file), intent (in ) :: self
179
179
character (* ), intent (in ) :: dname
180
180
class(* ), intent (in ) :: value(:,:,:,:)
181
181
class(* ), intent (in ), dimension (4 ), optional :: dset_dims
182
182
integer (HSIZE_T), intent (in ), dimension (4 ), optional :: istart, iend
183
183
integer , intent (in ), dimension (4 ), optional :: chunk_size
184
184
logical , intent (in ), optional :: compact
185
- end subroutine ph5write_4d
185
+ end subroutine h5write_4d
186
186
187
- module subroutine ph5write_5d (self , dname , value , dset_dims , istart , iend , chunk_size , compact )
187
+ module subroutine h5write_5d (self , dname , value , dset_dims , istart , iend , chunk_size , compact )
188
188
class(hdf5_file), intent (in ) :: self
189
189
character (* ), intent (in ) :: dname
190
190
class(* ), intent (in ) :: value(:,:,:,:,:)
191
191
class(* ), intent (in ), dimension (5 ), optional :: dset_dims
192
192
integer (HSIZE_T), intent (in ), dimension (5 ), optional :: istart, iend
193
193
integer , intent (in ), dimension (5 ), optional :: chunk_size
194
194
logical , intent (in ), optional :: compact
195
- end subroutine ph5write_5d
195
+ end subroutine h5write_5d
196
196
197
- module subroutine ph5write_6d (self , dname , value , dset_dims , istart , iend , chunk_size , compact )
197
+ module subroutine h5write_6d (self , dname , value , dset_dims , istart , iend , chunk_size , compact )
198
198
class(hdf5_file), intent (in ) :: self
199
199
character (* ), intent (in ) :: dname
200
200
class(* ), intent (in ) :: value(:,:,:,:,:,:)
201
201
class(* ), intent (in ), dimension (6 ), optional :: dset_dims
202
202
integer (HSIZE_T), intent (in ), dimension (6 ), optional :: istart, iend
203
203
integer , intent (in ), dimension (6 ), optional :: chunk_size
204
204
logical , intent (in ), optional :: compact
205
- end subroutine ph5write_6d
205
+ end subroutine h5write_6d
206
206
207
- module subroutine ph5write_7d (self , dname , value , dset_dims , istart , iend , chunk_size , compact )
207
+ module subroutine h5write_7d (self , dname , value , dset_dims , istart , iend , chunk_size , compact )
208
208
class(hdf5_file), intent (in ) :: self
209
209
character (* ), intent (in ) :: dname
210
210
class(* ), intent (in ) :: value(:,:,:,:,:,:,:)
211
211
class(* ), intent (in ), dimension (7 ), optional :: dset_dims
212
212
integer (HSIZE_T), intent (in ), dimension (7 ), optional :: istart, iend
213
213
integer , intent (in ), dimension (7 ), optional :: chunk_size
214
214
logical , intent (in ), optional :: compact
215
- end subroutine ph5write_7d
215
+ end subroutine h5write_7d
216
216
217
217
end interface
218
218
@@ -290,54 +290,54 @@ module subroutine h5read_scalar(self, dname, value)
290
290
class(* ), intent (inout ) :: value
291
291
end subroutine h5read_scalar
292
292
293
- module subroutine ph5read_1d (self , dname , value , istart , iend )
293
+ module subroutine h5read_1d (self , dname , value , istart , iend )
294
294
class(hdf5_file), intent (in ) :: self
295
295
character (* ), intent (in ) :: dname
296
296
class(* ), intent (inout ) :: value(:)
297
297
integer (HSIZE_T), intent (in ), dimension (1 ), optional :: istart, iend
298
- end subroutine ph5read_1d
298
+ end subroutine h5read_1d
299
299
300
- module subroutine ph5read_2d (self , dname , value , istart , iend )
300
+ module subroutine h5read_2d (self , dname , value , istart , iend )
301
301
class(hdf5_file), intent (in ) :: self
302
302
character (* ), intent (in ) :: dname
303
303
class(* ), intent (inout ) :: value(:,:)
304
304
integer (HSIZE_T), intent (in ), dimension (2 ), optional :: istart, iend
305
- end subroutine ph5read_2d
305
+ end subroutine h5read_2d
306
306
307
- module subroutine ph5read_3d (self , dname , value , istart , iend )
307
+ module subroutine h5read_3d (self , dname , value , istart , iend )
308
308
class(hdf5_file), intent (in ) :: self
309
309
character (* ), intent (in ) :: dname
310
310
class(* ), intent (inout ) :: value(:,:,:)
311
311
integer (HSIZE_T), intent (in ), dimension (3 ), optional :: istart, iend
312
- end subroutine ph5read_3d
312
+ end subroutine h5read_3d
313
313
314
- module subroutine ph5read_4d (self , dname , value , istart , iend )
314
+ module subroutine h5read_4d (self , dname , value , istart , iend )
315
315
class(hdf5_file), intent (in ) :: self
316
316
character (* ), intent (in ) :: dname
317
317
class(* ), intent (inout ) :: value(:,:,:,:)
318
318
integer (HSIZE_T), intent (in ), dimension (4 ), optional :: istart, iend
319
- end subroutine ph5read_4d
319
+ end subroutine h5read_4d
320
320
321
- module subroutine ph5read_5d (self , dname , value , istart , iend )
321
+ module subroutine h5read_5d (self , dname , value , istart , iend )
322
322
class(hdf5_file), intent (in ) :: self
323
323
character (* ), intent (in ) :: dname
324
324
class(* ), intent (inout ) :: value(:,:,:,:,:)
325
325
integer (HSIZE_T), intent (in ), dimension (5 ), optional :: istart, iend
326
- end subroutine ph5read_5d
326
+ end subroutine h5read_5d
327
327
328
- module subroutine ph5read_6d (self , dname , value , istart , iend )
328
+ module subroutine h5read_6d (self , dname , value , istart , iend )
329
329
class(hdf5_file), intent (in ) :: self
330
330
character (* ), intent (in ) :: dname
331
331
class(* ), intent (inout ) :: value(:,:,:,:,:,:)
332
332
integer (HSIZE_T), intent (in ), dimension (6 ), optional :: istart, iend
333
- end subroutine ph5read_6d
333
+ end subroutine h5read_6d
334
334
335
- module subroutine ph5read_7d (self , dname , value , istart , iend )
335
+ module subroutine h5read_7d (self , dname , value , istart , iend )
336
336
class(hdf5_file), intent (in ) :: self
337
337
character (* ), intent (in ) :: dname
338
338
class(* ), intent (inout ) :: value(:,:,:,:,:,:,:)
339
339
integer (HSIZE_T), intent (in ), dimension (7 ), optional :: istart, iend
340
- end subroutine ph5read_7d
340
+ end subroutine h5read_7d
341
341
342
342
end interface
343
343
@@ -354,7 +354,7 @@ end subroutine readattr_char
354
354
module subroutine readattr_num (self , dname , attr , attrval )
355
355
class(hdf5_file), intent (in ) :: self
356
356
character (* ), intent (in ) :: dname, attr
357
- class(* ), intent (inout ) :: attrval(:)
357
+ class(* ), intent (out ) :: attrval(:)
358
358
end subroutine readattr_num
359
359
360
360
module subroutine writeattr_char (self , dname , attr , attrval )
@@ -384,9 +384,9 @@ module subroutine h5open(self, filename, action, mpi, comp_lvl, shuffle, fletche
384
384
385
385
class(hdf5_file), intent (inout ) :: self
386
386
character (* ), intent (in ) :: filename
387
- character (* ), intent (in ), optional :: action
387
+ character (* ), intent (in ), optional :: action ! < r, r+, rw, w, a
388
388
logical , intent (in ) :: mpi
389
- integer , intent (in ), optional :: comp_lvl
389
+ integer , intent (in ), optional :: comp_lvl ! < 0: no compression. 1-9: ZLIB compression, higher is more compressior
390
390
logical , intent (in ), optional :: shuffle
391
391
logical , intent (in ), optional :: fletcher32
392
392
logical , intent (in ), optional :: debug
0 commit comments