trcnam_my_trc.F90 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. MODULE trcnam_my_trc
  2. !!======================================================================
  3. !! *** MODULE trcnam_my_trc ***
  4. !! TOP : initialisation of some run parameters for MY_TRC bio-model
  5. !!======================================================================
  6. !! History : 2.0 ! 2007-12 (C. Ethe, G. Madec) Original code
  7. !!----------------------------------------------------------------------
  8. #if defined key_my_trc
  9. !!----------------------------------------------------------------------
  10. !! 'key_my_trc' : MY_TRC model
  11. !!----------------------------------------------------------------------
  12. !! trc_nam_my_trc : MY_TRC model initialisation
  13. !!----------------------------------------------------------------------
  14. USE oce_trc ! Ocean variables
  15. USE par_trc ! TOP parameters
  16. USE trc ! TOP variables
  17. IMPLICIT NONE
  18. PRIVATE
  19. PUBLIC trc_nam_my_trc ! called by trcnam.F90 module
  20. !!----------------------------------------------------------------------
  21. !! NEMO/TOP 3.3 , NEMO Consortium (2010)
  22. !! $Id: trcnam_my_trc.F90 3680 2012-11-27 14:42:24Z rblod $
  23. !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt)
  24. !!----------------------------------------------------------------------
  25. CONTAINS
  26. SUBROUTINE trc_nam_my_trc
  27. !!----------------------------------------------------------------------
  28. !! *** trc_nam_my_trc ***
  29. !!
  30. !! ** Purpose : read MY_TRC namelist
  31. !!
  32. !!----------------------------------------------------------------------
  33. INTEGER :: jn
  34. !
  35. IF(lwp) WRITE(numout,*)
  36. IF(lwp) WRITE(numout,*) ' trc_nam_my_trc : read MY_TRC namelists'
  37. IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~~~~~'
  38. !
  39. do jn = jp_myt0 , jp_myt1
  40. ctrcnm (jn) = 'NONAME'
  41. ctrcln (jn) = 'NO Long Name'
  42. ctrcun (jn) = 'NOUNIT'
  43. ln_trc_ini(jn) = .false.
  44. ln_trc_wri(jn) = .true.
  45. enddo
  46. !
  47. END SUBROUTINE trc_nam_my_trc
  48. #else
  49. !!----------------------------------------------------------------------
  50. !! Dummy module : No MY_TRC
  51. !!----------------------------------------------------------------------
  52. CONTAINS
  53. SUBROUTINE trc_nam_my_trc ! Empty routine
  54. END SUBROUTINE trc_nam_my_trc
  55. #endif
  56. !!======================================================================
  57. END MODULE trcnam_my_trc