summaryrefslogtreecommitdiffstats
path: root/fortran/examples/groupexample.f90
diff options
context:
space:
mode:
Diffstat (limited to 'fortran/examples/groupexample.f90')
-rw-r--r--fortran/examples/groupexample.f909
1 files changed, 8 insertions, 1 deletions
diff --git a/fortran/examples/groupexample.f90 b/fortran/examples/groupexample.f90
index 148a796..3b0bb0e 100644
--- a/fortran/examples/groupexample.f90
+++ b/fortran/examples/groupexample.f90
@@ -18,7 +18,10 @@
INTEGER(HID_T) :: group_id ! Group identifier
INTEGER :: error ! Error flag
-
+!
+! Initialize FORTRAN interface.
+!
+ CALL h5init_fortran_f(error)
!
! Create a new file using default properties.
!
@@ -38,5 +41,9 @@
! Terminate access to the file.
!
CALL h5fclose_f(file_id, error)
+!
+! Close FORTRAN interface.
+!
+ CALL h5close_fortran_f(error)
END PROGRAM GROUPEXAMPLE