diff options
Diffstat (limited to 'fortran/examples/hyperslab.f90')
-rw-r--r-- | fortran/examples/hyperslab.f90 | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/fortran/examples/hyperslab.f90 b/fortran/examples/hyperslab.f90 index 0be4b60..45dd7a0 100644 --- a/fortran/examples/hyperslab.f90 +++ b/fortran/examples/hyperslab.f90 @@ -61,9 +61,9 @@ ! ! - ! Initialize FORTRAN predefined datatypes + ! Initialize FORTRAN interface. ! - CALL h5init_types_f(error) + CALL h5init_fortran_f(error) ! ! Create a new file using default properties. @@ -120,7 +120,9 @@ ! ! Open the file. ! - CALL h5fopen_f (filename, H5F_ACC_RDONLY_F, file_id, error) +! CALL h5fopen_f (filename, H5F_ACC_RDONLY_F, file_id, error) + CALL h5fopen_f (filename, H5F_ACC_RDWR_F, file_id, error) + write(*,*) error ! ! Open the dataset. @@ -192,8 +194,8 @@ CALL h5fclose_f(file_id, error) ! - ! Close FORTRAN predefined datatypes. + ! Close FORTRAN interface. ! - CALL h5close_types_f(error) + CALL h5close_fortran_f(error) END PROGRAM SELECTEXAMPLE |