mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r21259] Bug fix: Compilation failed for these two examples due to the wrong type of constant.
Changed constant 0 to 0_size_t to use the correct type in the h5tinsert_f subroutine. Platfomr tested: Elena's mac air with gfortran 4.6
This commit is contained in:
parent
a5522454a5
commit
90b220cbd0
@ -186,7 +186,7 @@ PROGRAM main
|
||||
!
|
||||
CALL H5Tcreate_f(H5T_COMPOUND_F, H5OFFSETOF(C_LOC(s3(1)),C_LOC(s3(2))),s3_tid, hdferr)
|
||||
|
||||
CALL H5Tinsert_f(s3_tid, "b_name", 0, h5kind_to_type(r_k4,H5_REAL_KIND), hdferr)
|
||||
CALL H5Tinsert_f(s3_tid, "b_name", 0_size_t, h5kind_to_type(r_k4,H5_REAL_KIND), hdferr)
|
||||
!
|
||||
! Read field b from s1 dataset. Field in the file is found by its name.
|
||||
!
|
||||
|
@ -190,7 +190,7 @@ PROGRAM main
|
||||
!
|
||||
CALL H5Tcreate_f(H5T_COMPOUND_F, H5OFFSETOF(C_LOC(s3(1)),C_LOC(s3(2))),s3_tid, hdferr)
|
||||
|
||||
CALL H5Tinsert_f(s3_tid, "b_name", 0, h5kind_to_type(r_k4,H5_REAL_KIND), hdferr)
|
||||
CALL H5Tinsert_f(s3_tid, "b_name", 0_size_t, h5kind_to_type(r_k4,H5_REAL_KIND), hdferr)
|
||||
!
|
||||
! Read field b from s1 dataset. Field in the file is found by its name.
|
||||
!
|
||||
|
Loading…
Reference in New Issue
Block a user