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 NEMO/branches/2019/dev_r11708_aumont_PISCES_QUOTA/src/TOP – NEMO

source: NEMO/branches/2019/dev_r11708_aumont_PISCES_QUOTA/src/TOP/trcsms.F90 @ 12537

Last change on this file since 12537 was 12537, checked in by aumont, 4 years ago

Comments in routines have been revised and significantly augmented

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