trcini_my_trc.F90 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. MODULE trcini_my_trc
  2. !!======================================================================
  3. !! *** MODULE trcini_my_trc ***
  4. !! TOP : initialisation of the MY_TRC tracers
  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' CFC tracers
  11. !!----------------------------------------------------------------------
  12. !! trc_ini_my_trc : MY_TRC model initialisation
  13. !!----------------------------------------------------------------------
  14. USE par_trc ! TOP parameters
  15. USE oce_trc
  16. USE trc
  17. USE trcsms_my_trc
  18. IMPLICIT NONE
  19. PRIVATE
  20. PUBLIC trc_ini_my_trc ! called by trcini.F90 module
  21. !!----------------------------------------------------------------------
  22. !! NEMO/TOP 3.3 , NEMO Consortium (2010)
  23. !! $Id: trcini_my_trc.F90 2787 2011-06-27 09:54:00Z cetlod $
  24. !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt)
  25. !!----------------------------------------------------------------------
  26. CONTAINS
  27. SUBROUTINE trc_ini_my_trc
  28. !!----------------------------------------------------------------------
  29. !! *** trc_ini_my_trc ***
  30. !!
  31. !! ** Purpose : initialization for MY_TRC model
  32. !!
  33. !! ** Method : - Read the namcfc namelist and check the parameter values
  34. !!----------------------------------------------------------------------
  35. ! ! Allocate MY_TRC arrays
  36. IF( trc_sms_my_trc_alloc() /= 0 ) CALL ctl_stop( 'STOP', 'trc_ini_my_trc: unable to allocate MY_TRC arrays' )
  37. IF(lwp) WRITE(numout,*)
  38. IF(lwp) WRITE(numout,*) ' trc_ini_my_trc: passive tracer unit vector'
  39. IF(lwp) WRITE(numout,*) ' To check conservation : '
  40. IF(lwp) WRITE(numout,*) ' 1 - No sea-ice model '
  41. IF(lwp) WRITE(numout,*) ' 2 - No runoff '
  42. IF(lwp) WRITE(numout,*) ' 3 - precipitation and evaporation equal to 1 : E=P=1 '
  43. IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~~~~'
  44. IF( .NOT. ln_rsttr ) trn(:,:,:,jp_myt0:jp_myt1) = 1.
  45. !
  46. END SUBROUTINE trc_ini_my_trc
  47. #else
  48. !!----------------------------------------------------------------------
  49. !! Dummy module No MY_TRC model
  50. !!----------------------------------------------------------------------
  51. CONTAINS
  52. SUBROUTINE trc_ini_my_trc ! Empty routine
  53. END SUBROUTINE trc_ini_my_trc
  54. #endif
  55. !!======================================================================
  56. END MODULE trcini_my_trc