summaryrefslogtreecommitdiffstats
path: root/fortran/examples/hyperslab.f90
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2000-11-03 19:49:59 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2000-11-03 19:49:59 (GMT)
commitada3710bc71fc8781a69cb0d87718dc608a9e553 (patch)
tree3f98829b376de309c1946db497359f72a15e2389 /fortran/examples/hyperslab.f90
parent39e47fe74d4991ea478ab579387c1860c4f503f1 (diff)
downloadhdf5-ada3710bc71fc8781a69cb0d87718dc608a9e553.zip
hdf5-ada3710bc71fc8781a69cb0d87718dc608a9e553.tar.gz
hdf5-ada3710bc71fc8781a69cb0d87718dc608a9e553.tar.bz2
[svn-r2797]
Purpose: Maintenance Description: Updated examples to use new F90 programming model Platforms tested: O2K and Solaris2.7
Diffstat (limited to 'fortran/examples/hyperslab.f90')
-rw-r--r--fortran/examples/hyperslab.f9012
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