mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
HDFFV-10738 Wrong INTENT for H5LTread_dataset_double_f
Fixed. Also fixed INTENT issues for H5DS, H5IM and H5TB when reading or getting.
This commit is contained in:
parent
b01b84f245
commit
b2423350f4
@ -304,7 +304,7 @@ CONTAINS
|
||||
IMPLICIT NONE
|
||||
INTEGER(hid_t), INTENT(in) :: did ! The dataset
|
||||
INTEGER , INTENT(in) :: idx ! The dimension
|
||||
CHARACTER(KIND=C_CHAR), DIMENSION(*), INTENT(in) :: label ! The label
|
||||
CHARACTER(KIND=C_CHAR), DIMENSION(*), INTENT(in) :: label ! The label
|
||||
INTEGER(SIZE_T), INTENT(in) :: label_len ! Length of label
|
||||
END FUNCTION H5DSset_label_c
|
||||
END INTERFACE
|
||||
@ -337,11 +337,11 @@ CONTAINS
|
||||
|
||||
IMPLICIT NONE
|
||||
|
||||
INTEGER(hid_t), INTENT(in) :: did ! The dataget
|
||||
INTEGER , INTENT(in) :: idx ! The dimension
|
||||
CHARACTER(LEN=*), INTENT(in) :: label ! The label
|
||||
INTEGER(size_t) , INTENT(inout) :: size ! The length of the label buffer
|
||||
INTEGER :: errcode ! Error code
|
||||
INTEGER(hid_t), INTENT(in) :: did ! The dataget
|
||||
INTEGER , INTENT(in) :: idx ! The dimension
|
||||
CHARACTER(LEN=*), INTENT(INOUT) :: label ! The label
|
||||
INTEGER(size_t) , INTENT(INOUT) :: size ! The length of the label buffer
|
||||
INTEGER :: errcode ! Error code
|
||||
INTEGER :: c_idx
|
||||
|
||||
INTERFACE
|
||||
@ -352,7 +352,7 @@ CONTAINS
|
||||
IMPLICIT NONE
|
||||
INTEGER(hid_t), INTENT(in) :: did ! The dataget
|
||||
INTEGER , INTENT(in) :: idx ! The dimension
|
||||
CHARACTER(KIND=C_CHAR), DIMENSION(*), INTENT(in) :: label ! The label
|
||||
CHARACTER(KIND=C_CHAR), DIMENSION(*), INTENT(INOUT) :: label ! The label
|
||||
INTEGER(SIZE_T), INTENT(inout) :: size ! Length of label
|
||||
END FUNCTION H5DSget_label_c
|
||||
END INTERFACE
|
||||
@ -386,8 +386,8 @@ CONTAINS
|
||||
IMPLICIT NONE
|
||||
|
||||
INTEGER(hid_t), INTENT(in) :: did ! The dataget
|
||||
CHARACTER(LEN=*), INTENT(out) :: name ! The name
|
||||
INTEGER(size_t) , INTENT(inout) :: size ! The length of the name buffer
|
||||
CHARACTER(LEN=*), INTENT(INOUT) :: name ! The name
|
||||
INTEGER(size_t) , INTENT(INOUT) :: size ! The length of the name buffer
|
||||
INTEGER :: errcode ! Error code
|
||||
|
||||
INTERFACE
|
||||
@ -397,7 +397,7 @@ CONTAINS
|
||||
IMPORT :: HID_T, SIZE_T
|
||||
IMPLICIT NONE
|
||||
INTEGER(hid_t), INTENT(in) :: did ! The dataget
|
||||
CHARACTER(KIND=C_CHAR), DIMENSION(*), INTENT(out) :: name ! The name
|
||||
CHARACTER(KIND=C_CHAR), DIMENSION(*), INTENT(INOUT) :: name ! The name
|
||||
INTEGER(SIZE_T), INTENT(inout) :: size ! Length of name
|
||||
END FUNCTION H5DSget_scale_name_c
|
||||
END INTERFACE
|
||||
@ -426,10 +426,10 @@ CONTAINS
|
||||
SUBROUTINE H5DSget_num_scales_f( did, idx, num_scales, errcode)
|
||||
|
||||
IMPLICIT NONE
|
||||
INTEGER(hid_t), INTENT(in) :: did ! the dataset
|
||||
INTEGER , INTENT(in) :: idx ! the dimension of did to query
|
||||
INTEGER , INTENT(out) :: num_scales ! the number of Dimension Scales associated with did
|
||||
INTEGER :: errcode ! error code
|
||||
INTEGER(hid_t), INTENT(in) :: did ! the dataset
|
||||
INTEGER , INTENT(in) :: idx ! the dimension of did to query
|
||||
INTEGER , INTENT(INOUT) :: num_scales ! the number of Dimension Scales associated with did
|
||||
INTEGER :: errcode ! error code
|
||||
INTEGER :: c_idx
|
||||
|
||||
INTERFACE
|
||||
@ -437,9 +437,9 @@ CONTAINS
|
||||
BIND(C,NAME='h5dsget_num_scales_c')
|
||||
IMPORT :: HID_T
|
||||
IMPLICIT NONE
|
||||
INTEGER(hid_t), INTENT(in) :: did ! the dataset
|
||||
INTEGER , INTENT(in) :: idx ! the dimension of did to query
|
||||
INTEGER , INTENT(out) :: num_scales ! the number of Dimension Scales associated with did
|
||||
INTEGER(hid_t), INTENT(in) :: did ! the dataset
|
||||
INTEGER , INTENT(in) :: idx ! the dimension of did to query
|
||||
INTEGER , INTENT(INOUT) :: num_scales ! the number of Dimension Scales associated with did
|
||||
END FUNCTION H5DSget_num_scales_c
|
||||
END INTERFACE
|
||||
|
||||
|
@ -293,7 +293,7 @@ PROGRAM H5HL_buildiface
|
||||
WRITE(11,'(A)') ' CHARACTER(LEN=*), INTENT(IN) :: dset_name'
|
||||
WRITE(11,'(A)') ' INTEGER(hid_t), INTENT(in) :: type_id'
|
||||
WRITE(11,'(A)') ' INTEGER(hsize_t), DIMENSION(*), INTENT(in) :: dims'
|
||||
WRITE(11,'(A)') ' REAL(KIND='//TRIM(ADJUSTL(chr2))//'),INTENT(IN)'//TRIM(rank_dim_line(j))//', TARGET :: buf'
|
||||
WRITE(11,'(A)') ' REAL(KIND='//TRIM(ADJUSTL(chr2))//'),INTENT(INOUT)'//TRIM(rank_dim_line(j))//', TARGET :: buf'
|
||||
WRITE(11,'(A)') ' INTEGER :: errcode '
|
||||
WRITE(11,'(A)') ' TYPE(C_PTR) :: f_ptr'
|
||||
WRITE(11,'(A)') ' INTEGER(size_t) :: namelen'
|
||||
@ -354,7 +354,7 @@ PROGRAM H5HL_buildiface
|
||||
WRITE(11,'(A)') ' INTEGER(hid_t) , INTENT(IN) :: loc_id'
|
||||
WRITE(11,'(A)') ' CHARACTER(LEN=*), INTENT(IN) :: dset_name'
|
||||
WRITE(11,'(A)') ' INTEGER(hsize_t), DIMENSION(*), INTENT(in) :: dims'
|
||||
WRITE(11,'(A)') ' REAL(KIND='//TRIM(ADJUSTL(chr2))//'),INTENT(IN)'//TRIM(rank_dim_line(j))//', TARGET :: buf'
|
||||
WRITE(11,'(A)') ' REAL(KIND='//TRIM(ADJUSTL(chr2))//'),INTENT(INOUT)'//TRIM(rank_dim_line(j))//', TARGET :: buf'
|
||||
WRITE(11,'(A)') ' INTEGER :: errcode '
|
||||
WRITE(11,'(A)') ' TYPE(C_PTR) :: f_ptr'
|
||||
WRITE(11,'(A)') ' INTEGER(size_t) :: namelen'
|
||||
@ -414,7 +414,7 @@ PROGRAM H5HL_buildiface
|
||||
WRITE(11,'(A)') ' INTEGER(hid_t) , INTENT(IN) :: loc_id'
|
||||
WRITE(11,'(A)') ' CHARACTER(LEN=*), INTENT(IN) :: dset_name'
|
||||
WRITE(11,'(A)') ' INTEGER(hsize_t), DIMENSION(*), INTENT(in) :: dims'
|
||||
WRITE(11,'(A)') ' REAL(KIND='//TRIM(ADJUSTL(chr2))//'),INTENT(IN)'//TRIM(rank_dim_line(j))//', TARGET :: buf'
|
||||
WRITE(11,'(A)') ' REAL(KIND='//TRIM(ADJUSTL(chr2))//'),INTENT(INOUT)'//TRIM(rank_dim_line(j))//', TARGET :: buf'
|
||||
WRITE(11,'(A)') ' INTEGER :: errcode '
|
||||
WRITE(11,'(A)') ' TYPE(C_PTR) :: f_ptr'
|
||||
WRITE(11,'(A)') ' INTEGER(size_t) :: namelen'
|
||||
@ -510,7 +510,7 @@ PROGRAM H5HL_buildiface
|
||||
WRITE(11,'(A)') ' CHARACTER(LEN=*), INTENT(IN) :: dset_name'
|
||||
WRITE(11,'(A)') ' INTEGER(hsize_t), DIMENSION(*), INTENT(in) :: dims'
|
||||
WRITE(11,'(A)') ' INTEGER(hid_t), INTENT(in) :: type_id'
|
||||
WRITE(11,'(A)') ' INTEGER(KIND='//TRIM(ADJUSTL(chr2))//'),INTENT(IN)'//TRIM(rank_dim_line(j))//', TARGET :: buf'
|
||||
WRITE(11,'(A)') ' INTEGER(KIND='//TRIM(ADJUSTL(chr2))//'),INTENT(INOUT)'//TRIM(rank_dim_line(j))//', TARGET :: buf'
|
||||
WRITE(11,'(A)') ' INTEGER :: errcode '
|
||||
WRITE(11,'(A)') ' TYPE(C_PTR) :: f_ptr'
|
||||
WRITE(11,'(A)') ' INTEGER(size_t) :: namelen'
|
||||
@ -540,7 +540,7 @@ PROGRAM H5HL_buildiface
|
||||
WRITE(11,'(A)') ' INTEGER(hid_t) , INTENT(IN) :: loc_id'
|
||||
WRITE(11,'(A)') ' CHARACTER(LEN=*), INTENT(IN) :: dset_name'
|
||||
WRITE(11,'(A)') ' INTEGER(hsize_t), DIMENSION(*), INTENT(in) :: dims'
|
||||
WRITE(11,'(A)') ' INTEGER(KIND='//TRIM(ADJUSTL(chr2))//'),INTENT(IN)'//TRIM(rank_dim_line(j))//', TARGET :: buf'
|
||||
WRITE(11,'(A)') ' INTEGER(KIND='//TRIM(ADJUSTL(chr2))//'),INTENT(INOUT)'//TRIM(rank_dim_line(j))//', TARGET :: buf'
|
||||
WRITE(11,'(A)') ' INTEGER :: errcode '
|
||||
WRITE(11,'(A)') ' TYPE(C_PTR) :: f_ptr'
|
||||
WRITE(11,'(A)') ' INTEGER(size_t) :: namelen'
|
||||
@ -712,7 +712,7 @@ PROGRAM H5HL_buildiface
|
||||
WRITE(11,'(A)') ' INTEGER(hsize_t), INTENT(in) :: start'
|
||||
WRITE(11,'(A)') ' INTEGER(hsize_t), INTENT(in) :: nrecords'
|
||||
WRITE(11,'(A)') ' INTEGER(size_t), INTENT(in) :: type_size'
|
||||
WRITE(11,'(A)') ' REAL(KIND='//TRIM(ADJUSTL(chr2))//'),INTENT(IN), DIMENSION(*), TARGET :: buf'
|
||||
WRITE(11,'(A)') ' REAL(KIND='//TRIM(ADJUSTL(chr2))//'),INTENT(INOUT), DIMENSION(*), TARGET :: buf'
|
||||
WRITE(11,'(A)') ' INTEGER :: errcode '
|
||||
WRITE(11,'(A)') ' INTEGER(size_t) :: namelen'
|
||||
WRITE(11,'(A)') ' INTEGER(size_t) :: namelen1'
|
||||
@ -778,7 +778,7 @@ PROGRAM H5HL_buildiface
|
||||
WRITE(11,'(A)') ' INTEGER(hsize_t), INTENT(in) :: start'
|
||||
WRITE(11,'(A)') ' INTEGER(hsize_t), INTENT(in) :: nrecords'
|
||||
WRITE(11,'(A)') ' INTEGER(size_t), INTENT(in) :: type_size'
|
||||
WRITE(11,'(A)') ' REAL(KIND='//TRIM(ADJUSTL(chr2))//'),INTENT(IN), DIMENSION(*), TARGET :: buf'
|
||||
WRITE(11,'(A)') ' REAL(KIND='//TRIM(ADJUSTL(chr2))//'),INTENT(INOUT), DIMENSION(*), TARGET :: buf'
|
||||
WRITE(11,'(A)') ' INTEGER :: errcode '
|
||||
WRITE(11,'(A)') ' INTEGER(size_t) :: namelen'
|
||||
WRITE(11,'(A)') ' TYPE(C_PTR) :: f_ptr'
|
||||
@ -809,7 +809,7 @@ PROGRAM H5HL_buildiface
|
||||
WRITE(11,'(A)') ' CHARACTER(LEN=*), INTENT(in) :: field_name'
|
||||
WRITE(11,'(A)') ' INTEGER(hid_t), INTENT(in) :: field_type'
|
||||
WRITE(11,'(A)') ' INTEGER, INTENT(in) :: field_index'
|
||||
WRITE(11,'(A)') ' REAL(KIND='//TRIM(ADJUSTL(chr2))//'), INTENT(in), DIMENSION(*), TARGET :: buf'
|
||||
WRITE(11,'(A)') ' REAL(KIND='//TRIM(ADJUSTL(chr2))//'), INTENT(IN), DIMENSION(*), TARGET :: buf'
|
||||
WRITE(11,'(A)') ' INTEGER(size_t) :: namelen'
|
||||
WRITE(11,'(A)') ' INTEGER(size_t) :: namelen1'
|
||||
WRITE(11,'(A)') ' INTEGER :: errcode'
|
||||
|
@ -539,7 +539,7 @@ CONTAINS
|
||||
INTEGER, INTENT(in) :: pal_number ! palette number
|
||||
INTEGER(hsize_t), DIMENSION(*), INTENT(inout) :: dims ! dimensions
|
||||
INTEGER :: errcode ! error code
|
||||
INTEGER(size_t) :: namelen ! name length
|
||||
INTEGER(size_t) :: namelen ! name length
|
||||
|
||||
INTERFACE
|
||||
INTEGER FUNCTION h5imget_palette_info_c(loc_id,namelen,dset_name,pal_number,dims) &
|
||||
@ -551,7 +551,7 @@ CONTAINS
|
||||
CHARACTER(KIND=C_CHAR), DIMENSION(*), INTENT(in) :: dset_name ! name of the dataset
|
||||
INTEGER, INTENT(in) :: pal_number ! palette number
|
||||
INTEGER(hsize_t), DIMENSION(*), INTENT(inout) :: dims ! dimensions
|
||||
INTEGER(size_t) :: namelen ! name length
|
||||
INTEGER(size_t) :: namelen ! name length
|
||||
END FUNCTION h5imget_palette_info_c
|
||||
END INTERFACE
|
||||
|
||||
|
@ -532,7 +532,7 @@ CONTAINS
|
||||
INTEGER(hsize_t), INTENT(in) :: start ! start record
|
||||
INTEGER(hsize_t), INTENT(in) :: nrecords ! records
|
||||
INTEGER(size_t), INTENT(in) :: type_size ! type size
|
||||
INTEGER, INTENT(in), DIMENSION(*), TARGET :: buf ! data buffer
|
||||
INTEGER, INTENT(INOUT), DIMENSION(*), TARGET :: buf ! data buffer
|
||||
INTEGER :: errcode ! error code
|
||||
INTEGER(size_t) :: namelen ! name length
|
||||
INTEGER(size_t) :: namelen1
|
||||
@ -564,7 +564,7 @@ CONTAINS
|
||||
INTEGER(hsize_t), INTENT(in) :: start ! start record
|
||||
INTEGER(hsize_t), INTENT(in) :: nrecords ! records
|
||||
INTEGER(size_t), INTENT(in) :: type_size ! type size
|
||||
CHARACTER(LEN=*), INTENT(in), DIMENSION(*), TARGET :: buf ! data buffer
|
||||
CHARACTER(LEN=*), INTENT(INOUT), DIMENSION(*), TARGET :: buf ! data buffer
|
||||
INTEGER :: errcode ! error code
|
||||
INTEGER(size_t) :: namelen ! name length
|
||||
INTEGER(size_t) :: namelen1 ! name length
|
||||
@ -687,7 +687,7 @@ CONTAINS
|
||||
INTEGER(hsize_t), INTENT(in) :: start ! start record
|
||||
INTEGER(hsize_t), INTENT(in) :: nrecords ! records
|
||||
INTEGER(size_t), INTENT(in) :: type_size ! type size
|
||||
INTEGER, INTENT(in), DIMENSION(*), TARGET :: buf ! data buffer
|
||||
INTEGER, INTENT(INOUT), DIMENSION(*), TARGET :: buf ! data buffer
|
||||
INTEGER :: errcode ! error code
|
||||
INTEGER(size_t) :: namelen ! name length
|
||||
TYPE(C_PTR) :: f_ptr
|
||||
@ -716,7 +716,7 @@ CONTAINS
|
||||
INTEGER(hsize_t), INTENT(in) :: start ! start record
|
||||
INTEGER(hsize_t), INTENT(in) :: nrecords ! records
|
||||
INTEGER(size_t), INTENT(in) :: type_size ! type size
|
||||
CHARACTER(LEN=*), INTENT(in), DIMENSION(*), TARGET :: buf ! data buffer
|
||||
CHARACTER(LEN=*), INTENT(INOUT), DIMENSION(*), TARGET :: buf ! data buffer
|
||||
INTEGER :: errcode ! error code
|
||||
INTEGER(size_t) :: namelen ! name length
|
||||
TYPE(C_PTR) :: f_ptr
|
||||
|
Loading…
Reference in New Issue
Block a user