vendored-meson/meson/test cases/frameworks/25 hdf5/main.f90
raw| 1 | use hdf5 |
| 2 | |
| 3 | implicit none |
| 4 | |
| 5 | integer :: ier, major, minor, rel |
| 6 | |
| 7 | call h5open_f(ier) |
| 8 | if (ier /= 0) error stop 'Unable to initialize HDF5' |
| 9 | |
| 10 | call h5get_libversion_f(major, minor, rel, ier) |
| 11 | if (ier /= 0) error stop 'Unable to check HDF5 version' |
| 12 | print '(A,I1,A1,I0.2,A1,I1)','Fortran HDF5 version ',major,'.',minor,'.',rel |
| 13 | |
| 14 | call h5close_f(ier) |
| 15 | if (ier /= 0) error stop 'Unable to close HDF5 library' |
| 16 | |
| 17 | end program |