[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:
Elena Pourmal 2011-08-18 16:39:51 -05:00
parent a5522454a5
commit 90b220cbd0
2 changed files with 2 additions and 2 deletions

View File

@ -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.
!

View File

@ -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.
!