trcsms_pisces.F90 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. MODULE trcsms_pisces
  2. !!======================================================================
  3. !! *** MODULE trcsms_pisces ***
  4. !! TOP : PISCES Source Minus Sink manager
  5. !!======================================================================
  6. !! History : 1.0 ! 2004-03 (O. Aumont) Original code
  7. !! 2.0 ! 2007-12 (C. Ethe, G. Madec) F90
  8. !!----------------------------------------------------------------------
  9. #if defined key_pisces || defined key_pisces_reduced
  10. !!----------------------------------------------------------------------
  11. !! 'key_pisces' PISCES bio-model
  12. !!----------------------------------------------------------------------
  13. !! trcsms_pisces : Time loop of passive tracers sms
  14. !!----------------------------------------------------------------------
  15. USE par_pisces
  16. USE p4zsms
  17. USE p2zsms
  18. IMPLICIT NONE
  19. PRIVATE
  20. PUBLIC trc_sms_pisces ! called in trcsms.F90
  21. !!----------------------------------------------------------------------
  22. !! NEMO/TOP 3.3 , NEMO Consortium (2010)
  23. !! $Id: trcsms_pisces.F90 4147 2013-11-04 11:51:55Z cetlod $
  24. !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt)
  25. !!----------------------------------------------------------------------
  26. CONTAINS
  27. !!----------------------------------------------------------------------
  28. !! *** ROUTINE trc_ini_pisces ***
  29. !!
  30. !! ** Purpose : Initialisation of the PISCES biochemical model
  31. !!----------------------------------------------------------------------
  32. SUBROUTINE trc_sms_pisces( kt )
  33. !!---------------------------------------------------------------------
  34. !! *** ROUTINE trc_sms_pisces ***
  35. !!
  36. !! ** Purpose : Managment of the call to Biological sources and sinks
  37. !! routines of PISCES or LOBSTER bio-model
  38. !!
  39. !!---------------------------------------------------------------------
  40. !
  41. INTEGER, INTENT( in ) :: kt ! ocean time-step index
  42. !!---------------------------------------------------------------------
  43. !
  44. IF( lk_p4z ) THEN ; CALL p4z_sms( kt ) ! PISCES
  45. ELSE ; CALL p2z_sms( kt ) ! LOBSTER
  46. ENDIF
  47. !
  48. END SUBROUTINE trc_sms_pisces
  49. #else
  50. !!======================================================================
  51. !! Dummy module : No PISCES bio-model
  52. !!======================================================================
  53. CONTAINS
  54. SUBROUTINE trc_sms_pisces( kt ) ! Empty routine
  55. INTEGER, INTENT( in ) :: kt
  56. WRITE(*,*) 'trc_sms_pisces: You should not have seen this print! error?', kt
  57. END SUBROUTINE trc_sms_pisces
  58. #endif
  59. !!======================================================================
  60. END MODULE trcsms_pisces