udunits_inc.F 786 B

12345678910111213141516171819202122232425262728
  1. c
  2. c Module to include "ununits.inc" provided with the UDUnits package.
  3. c Thanks to its Fortran-77 style it could not be included in the
  4. c 'udunits.F90' module directly.
  5. c
  6. c Most important part of the include file is the definition of 'UD_POINTER',
  7. c which specfies how in Fortran a pointer to a uni-data type
  8. c should be defined. Depending on the installed 'udunits' library,
  9. c this is either 'integer*4' or 'integer*8' :
  10. c
  11. c #define UD_POINTER integer*8
  12. c
  13. c With this macro the creation function is defined:
  14. c
  15. c UD_POINTER utmake
  16. c
  17. module udunits_inc
  18. public
  19. #include "udunits.inc"
  20. ! set the kind value given the kind of the UTMake function:
  21. integer, parameter :: UD_POINTER_KIND = kind(utmake)
  22. end module udunits_inc