m_stdio.F90 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2. ! NASA/GSFC, Data Assimilation Office, Code 910.3, GEOS/DAS !
  3. !-----------------------------------------------------------------------
  4. ! CVS m_stdio.F90,v 1.3 2002-08-22 23:14:53 jacob Exp
  5. ! CVS MCT_2_8_0
  6. !-----------------------------------------------------------------------
  7. !BOP
  8. !
  9. ! !MODULE: m_stdio - a F90 module defines std. I/O parameters
  10. !
  11. ! !DESCRIPTION:
  12. ! Define system dependent I/O parameters.
  13. !
  14. ! !INTERFACE:
  15. module m_stdio
  16. implicit none
  17. private
  18. public :: stdin ! a unit linked to UNIX stdin
  19. public :: stdout ! a unit linked to UNIX stdout
  20. public :: stderr ! a unit linked to UNIX stderr
  21. public :: LEN_FILENAME
  22. ! !REVISION HISTORY:
  23. ! 10oct96 - Jing G. - Defined
  24. ! 25Jul02 - J. Larson - Changed cpp define token HP-UX to
  25. ! HP_UX for compatibility with Fujitsu
  26. ! cpp.
  27. !EOP
  28. !_______________________________________________________________________
  29. ! Defines standar i/o units.
  30. integer, parameter :: stdin = 5
  31. integer, parameter :: stdout = 6
  32. #ifdef sysHP_UX
  33. ! Special setting for HP-UX
  34. integer, parameter :: stderr = 7
  35. #else
  36. ! Generic setting for UNIX other than HP-UX
  37. integer, parameter :: stderr = 0
  38. #endif
  39. integer, parameter :: LEN_FILENAME = 128
  40. !-----------------------------------------------------------------------
  41. end module m_stdio
  42. !.