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/UKMO/AMM15_v3_6_STABLE_package/NEMOGCM/NEMO/TOP_SRC – NEMO

source: branches/UKMO/AMM15_v3_6_STABLE_package/NEMOGCM/NEMO/TOP_SRC/trcsms.F90 @ 8058

Last change on this file since 8058 was 8058, checked in by jgraham, 7 years ago

Clear keywords

File size: 3.3 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_cfc         ! CFC 11 & 12
19   USE trcsms_c14b        ! C14b tracer
20   USE trcsms_my_trc      ! MY_TRC  tracers
21   USE prtctl_trc         ! Print control for debbuging
22
23   IMPLICIT NONE
24   PRIVATE
25
26   PUBLIC   trc_sms    ! called in trcstp.F90
27
28   !!----------------------------------------------------------------------
29   !! NEMO/TOP 3.3 , NEMO Consortium (2010)
30   !! $Id$
31   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
32   !!----------------------------------------------------------------------
33CONTAINS
34
35   SUBROUTINE trc_sms( kt )
36      !!---------------------------------------------------------------------
37      !!                     ***  ROUTINE trc_sms  ***
38      !!
39      !! ** Purpose :   Managment of the time loop of passive tracers sms
40      !!
41      !! ** Method  : -  call the main routine of of each defined tracer model
42      !! -------------------------------------------------------------------------------------
43      INTEGER, INTENT( in ) ::   kt      ! ocean time-step index     
44      !!
45      CHARACTER (len=25) :: charout
46      !!---------------------------------------------------------------------
47      !
48      IF( nn_timing == 1 )   CALL timing_start('trc_sms')
49      !
50      IF( lk_pisces  )   CALL trc_sms_pisces ( kt )    ! main program of PISCES
51      IF( lk_cfc     )   CALL trc_sms_cfc    ( kt )    ! surface fluxes of CFC
52      IF( lk_c14b    )   CALL trc_sms_c14b   ( kt )    ! surface fluxes of C14
53      IF( lk_my_trc  )   CALL trc_sms_my_trc ( kt )    ! MY_TRC  tracers
54
55      IF(ln_ctl) THEN      ! print mean trends (used for debugging)
56         WRITE(charout, FMT="('sms ')")
57         CALL prt_ctl_trc_info( charout )
58         CALL prt_ctl_trc( tab4d=trn, mask=tmask, clinfo=ctrcnm )
59      ENDIF
60      !
61      IF( nn_timing == 1 )   CALL timing_stop('trc_sms')
62      !
63   END SUBROUTINE trc_sms
64
65#else
66   !!======================================================================
67   !!  Dummy module :                                     No passive tracer
68   !!======================================================================
69CONTAINS
70   SUBROUTINE trc_sms( kt )                   ! Empty routine
71      INTEGER, INTENT( in ) ::   kt
72      WRITE(*,*) 'trc_sms: You should not have seen this print! error?', kt
73   END SUBROUTINE trc_sms
74#endif 
75
76   !!======================================================================
77END MODULE trcsms
Note: See TracBrowser for help on using the repository browser.