kinds_mod.f 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  2. !
  3. ! This module defines the F90 kind parameter for common data types.
  4. !
  5. !-----------------------------------------------------------------------
  6. !
  7. ! CVS:$Id: kinds_mod.f,v 1.2 2000/04/19 21:56:25 pwjones Exp $
  8. !
  9. ! Copyright (c) 1997, 1998 the Regents of the University of
  10. ! California.
  11. !
  12. ! This software and ancillary information (herein called software)
  13. ! called SCRIP is made available under the terms described here.
  14. ! The software has been approved for release with associated
  15. ! LA-CC Number 98-45.
  16. !
  17. ! Unless otherwise indicated, this software has been authored
  18. ! by an employee or employees of the University of California,
  19. ! operator of the Los Alamos National Laboratory under Contract
  20. ! No. W-7405-ENG-36 with the U.S. Department of Energy. The U.S.
  21. ! Government has rights to use, reproduce, and distribute this
  22. ! software. The public may copy and use this software without
  23. ! charge, provided that this Notice and any statement of authorship
  24. ! are reproduced on all copies. Neither the Government nor the
  25. ! University makes any warranty, express or implied, or assumes
  26. ! any liability or responsibility for the use of this software.
  27. !
  28. ! If software is modified to produce derivative works, such modified
  29. ! software should be clearly marked, so as not to confuse it with
  30. ! the version available from Los Alamos National Laboratory.
  31. !
  32. !***********************************************************************
  33. module kinds_mod
  34. !-----------------------------------------------------------------------
  35. implicit none
  36. save
  37. !-----------------------------------------------------------------------
  38. integer, parameter :: char_len = 100,
  39. & int_kind = kind(1),
  40. & log_kind = kind(.true.),
  41. & real_kind = selected_real_kind(6),
  42. & dbl_kind = selected_real_kind(13)
  43. !-----------------------------------------------------------------------
  44. end module kinds_mod
  45. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!