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

source: branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/TOP_SRC/trcsms.F90 @ 7203

Last change on this file since 7203 was 7203, checked in by timgraham, 7 years ago

Remove age tracer as this conflicts with changes for MEDUSA. This will need to be added as a separate branch in suites

File size: 3.3 KB
RevLine 
[268]1MODULE trcsms
[945]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
[274]8   !!----------------------------------------------------------------------
[945]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
[1254]18   USE trcsms_cfc         ! CFC 11 & 12
19   USE trcsms_c14b        ! C14b tracer
[945]20   USE trcsms_my_trc      ! MY_TRC  tracers
21   USE prtctl_trc         ! Print control for debbuging
[268]22
[335]23   IMPLICIT NONE
24   PRIVATE
[268]25
[945]26   PUBLIC   trc_sms    ! called in trcstp.F90
[268]27
[945]28   !!----------------------------------------------------------------------
[2528]29   !! NEMO/TOP 3.3 , NEMO Consortium (2010)
[6486]30   !! $Id$
[2715]31   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
[945]32   !!----------------------------------------------------------------------
[268]33CONTAINS
34
[335]35   SUBROUTINE trc_sms( kt )
[945]36      !!---------------------------------------------------------------------
[1011]37      !!                     ***  ROUTINE trc_sms  ***
[335]38      !!
[945]39      !! ** Purpose :   Managment of the time loop of passive tracers sms
[335]40      !!
[945]41      !! ** Method  : -  call the main routine of of each defined tracer model
[335]42      !! -------------------------------------------------------------------------------------
[268]43      INTEGER, INTENT( in ) ::   kt      ! ocean time-step index     
[945]44      !!
[433]45      CHARACTER (len=25) :: charout
[945]46      !!---------------------------------------------------------------------
[3294]47      !
48      IF( nn_timing == 1 )   CALL timing_start('trc_sms')
49      !
[945]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
[1254]52      IF( lk_c14b    )   CALL trc_sms_c14b   ( kt )    ! surface fluxes of C14
[945]53      IF( lk_my_trc  )   CALL trc_sms_my_trc ( kt )    ! MY_TRC  tracers
[268]54
[945]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 )
[433]59      ENDIF
[945]60      !
[3294]61      IF( nn_timing == 1 )   CALL timing_stop('trc_sms')
62      !
[335]63   END SUBROUTINE trc_sms
[268]64
65#else
[335]66   !!======================================================================
[945]67   !!  Dummy module :                                     No passive tracer
[335]68   !!======================================================================
69CONTAINS
[945]70   SUBROUTINE trc_sms( kt )                   ! Empty routine
[268]71      INTEGER, INTENT( in ) ::   kt
72      WRITE(*,*) 'trc_sms: You should not have seen this print! error?', kt
[335]73   END SUBROUTINE trc_sms
[268]74#endif 
75
[945]76   !!======================================================================
[6487]77END MODULE trcsms
Note: See TracBrowser for help on using the repository browser.