New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
trcsms.F90 in branches/NERC/dev_r5518_NOC_MEDUSA_Stable/NEMOGCM/NEMO/TOP_SRC – NEMO

source: branches/NERC/dev_r5518_NOC_MEDUSA_Stable/NEMOGCM/NEMO/TOP_SRC/trcsms.F90 @ 6509

Last change on this file since 6509 was 6261, checked in by jpalmier, 8 years ago

JPALM -- 18-01-2016 -- bugfix MEDUSA-TOP by calling lbc_lnk(trn) and (trb) before advection

File size: 4.0 KB
Line 
1MODULE trcsms
2   !!======================================================================
3   !!                         ***  MODULE trcsms  ***
4   !! TOP :   Time loop of passive tracers sms
5   !!======================================================================
6   !! History :   1.0  !  2005-03 (O. Aumont, A. El Moussaoui) F90
7   !!             2.0  !  2007-12  (C. Ethe, G. Madec)  revised architecture
8   !!----------------------------------------------------------------------
9#if defined key_top
10   !!----------------------------------------------------------------------
11   !!   'key_top'                                                TOP models
12   !!----------------------------------------------------------------------
13   !!   trc_sms        :  Time loop of passive tracers sms
14   !!----------------------------------------------------------------------
15   USE oce_trc            !
16   USE trc                !
17   USE trcsms_pisces      ! PISCES biogeo-model
18   USE trcsms_medusa      ! MEDUSA tracers
19   USE trcsms_idtra       ! Idealize Tracer
20   USE trcsms_cfc         ! CFC 11 & 12
21   USE trcsms_c14b        ! C14b tracer
22   USE trcsms_my_trc      ! MY_TRC  tracers
23   USE prtctl_trc         ! Print control for debbuging
24
25   IMPLICIT NONE
26   PRIVATE
27
28   PUBLIC   trc_sms    ! called in trcstp.F90
29
30   !!----------------------------------------------------------------------
31   !! NEMO/TOP 3.3 , NEMO Consortium (2010)
32   !! $Id$
33   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
34   !!----------------------------------------------------------------------
35CONTAINS
36
37   SUBROUTINE trc_sms( kt )
38      !!---------------------------------------------------------------------
39      !!                     ***  ROUTINE trc_sms  ***
40      !!
41      !! ** Purpose :   Managment of the time loop of passive tracers sms
42      !!
43      !! ** Method  : -  call the main routine of of each defined tracer model
44      !! -------------------------------------------------------------------------------------
45      INTEGER, INTENT( in ) ::   kt      ! ocean time-step index     
46      !!
47      INTEGER            ::  jn
48      CHARACTER (len=25) :: charout
49      !!---------------------------------------------------------------------
50      !
51      IF( nn_timing == 1 )   CALL timing_start('trc_sms')
52      !
53      IF( lk_pisces  )   CALL trc_sms_pisces ( kt )    ! main program of PISCES
54      IF( lk_medusa  )   CALL trc_sms_medusa ( kt )    ! MEDUSA  tracers
55# if defined key_debug_medusa
56         IF(lwp) WRITE(numout,*) '--trcsms : MEDUSA OK --  next IDTRA -- '
57      CALL flush(numout)
58# endif
59      IF( lk_idtra   )   CALL trc_sms_idtra  ( kt )    ! radioactive decay of Id. tracer
60# if defined key_debug_medusa
61         IF(lwp) WRITE(numout,*) '--trcsms : IDTRA OK --  next CFC -- '
62      CALL flush(numout)
63# endif
64      IF( lk_cfc     )   CALL trc_sms_cfc    ( kt )    ! surface fluxes of CFC
65# if defined key_debug_medusa
66         IF(lwp) WRITE(numout,*) '--trcsms : CFC OK --  continue -- '
67      CALL flush(numout)
68# endif
69      IF( lk_c14b    )   CALL trc_sms_c14b   ( kt )    ! surface fluxes of C14
70      IF( lk_my_trc  )   CALL trc_sms_my_trc ( kt )    ! MY_TRC  tracers
71
72      IF(ln_ctl) THEN      ! print mean trends (used for debugging)
73         WRITE(charout, FMT="('sms ')")
74         CALL prt_ctl_trc_info( charout )
75         CALL prt_ctl_trc( tab4d=trn, mask=tmask, clinfo=ctrcnm )
76      ENDIF
77      !
78      IF( nn_timing == 1 )   CALL timing_stop('trc_sms')
79      !
80   END SUBROUTINE trc_sms
81
82#else
83   !!======================================================================
84   !!  Dummy module :                                     No passive tracer
85   !!======================================================================
86CONTAINS
87   SUBROUTINE trc_sms( kt )                   ! Empty routine
88      INTEGER, INTENT( in ) ::   kt
89      WRITE(*,*) 'trc_sms: You should not have seen this print! error?', kt
90   END SUBROUTINE trc_sms
91#endif 
92
93   !!======================================================================
94END MODULE  trcsms
Note: See TracBrowser for help on using the repository browser.