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

source: branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/NEMO/TOP_SRC/trcsms.F90 @ 7041

Last change on this file since 7041 was 7041, checked in by cetlod, 7 years ago

ROBUST5_CNRS : implementation of part I of new TOP interface - 1st step -, see ticket #1782

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