diff options
Diffstat (limited to 'windows/fortran')
-rwxr-xr-x | windows/fortran/src/H5fortran_types.f90 | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/windows/fortran/src/H5fortran_types.f90 b/windows/fortran/src/H5fortran_types.f90 new file mode 100755 index 0000000..e5139b6 --- /dev/null +++ b/windows/fortran/src/H5fortran_types.f90 @@ -0,0 +1,30 @@ +! +! This file contains HDF5 Fortran90 type definitions +! + MODULE H5FORTRAN_TYPES + ! + ! HDF5 integers + ! + ! Each of the arguments of SELECTED_INT_KIND function should be + ! determined by configure. + ! R_LARGE is the number of digits for the biggest integer supported. + ! R_INTEGER is the number of digits in INTEGER + ! For example: + ! On 64 bit machine ( DEC ALPHA) R_LARGE = 18 and R_INTEGER = 9 + ! On 32 bit machines ( Sparc Solaris ) R_LARGE = 9 and R_INTEGER = 9 + ! + INTEGER, PARAMETER :: R_LARGE = 9 + INTEGER, PARAMETER :: R_INTEGER = 9 + INTEGER, PARAMETER :: HADDR_T = SELECTED_INT_KIND(R_LARGE) + INTEGER, PARAMETER :: HSIZE_T = SELECTED_INT_KIND(R_LARGE) + INTEGER, PARAMETER :: HSSIZE_T = SELECTED_INT_KIND(R_LARGE) + INTEGER, PARAMETER :: HID_T = SELECTED_INT_KIND(R_INTEGER) + INTEGER, PARAMETER :: SIZE_T = SELECTED_INT_KIND(R_LARGE) + + ! + ! Some HDF5 FORTARN90 default values ( here for now 8/5/99 EIP ) + ! + + INTEGER(SIZE_T), PARAMETER :: OBJECT_NAMELEN_DEFAULT_F = -1 + + END MODULE H5FORTRAN_TYPES |