Skip to content

Commit 766f601

Browse files
committed
lint
1 parent 6fcb5c1 commit 766f601

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

src/interface.f90

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module h5mpi
22

3-
use, intrinsic :: iso_c_binding, only : C_NULL_CHAR
43
use, intrinsic :: iso_fortran_env, only : real32, real64, int32, int64, stderr=>error_unit
54

65
use mpi, only : MPI_COMM_WORLD, MPI_INFO_NULL, mpi_comm_rank
@@ -12,8 +11,11 @@ module h5mpi
1211

1312
implicit none (type, external)
1413

14+
private
15+
1516
integer, parameter :: mpi_h5comm = MPI_COMM_WORLD, mpi_h5info = MPI_INFO_NULL
1617

18+
!> main type
1719
type :: hdf5_file
1820

1921
character(:), allocatable :: filename
@@ -84,13 +86,15 @@ module h5mpi
8486

8587
end type mpi_tags
8688

87-
private
88-
public :: mpi_h5comm, hdf5_file, mpi_tags, has_parallel_compression, is_hdf5, &
89-
hdf_rank_check, hdf_shape_check, mpi_collective, mpi_hyperslab, &
90-
hdf5version, h5exist, hdf5_close, &
91-
HSIZE_T, &
92-
H5T_INTEGER_F, H5T_FLOAT_F, H5T_STRING_F, &
93-
H5T_NATIVE_REAL, H5T_NATIVE_DOUBLE, H5T_NATIVE_INTEGER, H5T_NATIVE_CHARACTER, H5T_STD_I64LE
89+
90+
public :: mpi_h5comm, mpi_tags, has_parallel_compression
91+
public :: hdf5_file, is_hdf5
92+
public :: hdf_rank_check, hdf_shape_check, hdf5version, h5exist, hdf5_close
93+
public :: mpi_collective, mpi_hyperslab
94+
95+
!! for submodules only
96+
public :: HSIZE_T, H5T_NATIVE_REAL, H5T_NATIVE_DOUBLE, H5T_NATIVE_INTEGER, H5T_NATIVE_CHARACTER, H5T_STD_I64LE
97+
public :: H5T_INTEGER_F, H5T_FLOAT_F, H5T_STRING_F
9498

9599
interface !< write.f90
96100
module subroutine hdf_create(self, dname, dtype, mem_dims, dset_dims, &
@@ -115,7 +119,7 @@ module subroutine write_group(self, group_path)
115119
end subroutine write_group
116120

117121
module subroutine create_softlink(self, tgt, link)
118-
class(hdf5_file), intent(inout) :: self
122+
class(hdf5_file), intent(in) :: self
119123
character(*), intent(in) :: tgt, & !< target path to link
120124
link !< soft link path to create
121125
end subroutine create_softlink

src/read.f90

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
submodule (h5mpi) hdf5_read
22

3+
use, intrinsic:: iso_c_binding, only : c_null_char
4+
35
use hdf5, only : h5dget_create_plist_f, &
46
h5pget_layout_f, h5pget_chunk_f, h5pclose_f, h5pget_nfilters_f, h5pget_filter_f, &
57
h5dget_type_f, h5dopen_f, h5dclose_f, &

0 commit comments

Comments
 (0)