mo_kind.F90 869 B

1234567891011121314151617181920212223242526272829303132
  1. #include "tm5.inc"
  2. MODULE mo_kind
  3. ! L. Kornblueh, MPI, August 2001, added working precision and comments
  4. IMPLICIT NONE
  5. ! Number model from which the SELECTED_*_KIND are requested:
  6. !
  7. ! 4 byte REAL 8 byte REAL
  8. ! CRAY: - precision = 13
  9. ! exponent = 2465
  10. ! IEEE: precision = 6 precision = 15
  11. ! exponent = 37 exponent = 307
  12. !
  13. ! Most likely this are the only possible models.
  14. ! Floating point section
  15. INTEGER, PARAMETER :: sp = SELECTED_REAL_KIND(6,37)
  16. INTEGER, PARAMETER :: dp = SELECTED_REAL_KIND(12,307)
  17. INTEGER, PARAMETER :: wp = dp ! working precision
  18. ! Integer section
  19. INTEGER, PARAMETER :: i4 = SELECTED_INT_KIND(9)
  20. INTEGER, PARAMETER :: i8 = SELECTED_INT_KIND(14)
  21. END MODULE mo_kind