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

source: branches/NERC/dev_r5107_NOC_MEDUSA/NEMOGCM/NEMO/TOP_SRC/trcsms.F90 @ 5707

Last change on this file since 5707 was 5707, checked in by acc, 9 years ago

JPALM --25-08-2015 -- add MEDUSA in the branch. MEDUSA version already up-to-date with this trunk revision

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