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

source: trunk/NEMO/TOP_SRC/trcsms.F90 @ 1011

Last change on this file since 1011 was 1011, checked in by cetlod, 16 years ago

re-organization of TOP initialization and outputs phases see ticket 171

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
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_lobster     ! LOBSTER bio-model
18   USE trcsms_pisces      ! PISCES biogeo-model
19   USE trcsms_cfc         ! CFC 11 & 12
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 2.0 , LOCEAN-IPSL (2007)
30   !! $Header:$
31   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt)
32   !!----------------------------------------------------------------------
33
34CONTAINS
35
36   SUBROUTINE trc_sms( kt )
37      !!---------------------------------------------------------------------
38      !!                     ***  ROUTINE trc_sms  ***
39      !!
40      !! ** Purpose :   Managment of the time loop of passive tracers sms
41      !!
42      !! ** Method  : -  call the main routine of of each defined tracer model
43      !! -------------------------------------------------------------------------------------
44      INTEGER, INTENT( in ) ::   kt      ! ocean time-step index     
45      !!
46      CHARACTER (len=25) :: charout
47      !!---------------------------------------------------------------------
48
49      IF ( MOD(kt,ndttrc) /= 0) RETURN      ! this ROUTINE is called only every ndttrc time step
50
51      IF( lk_lobster )   CALL trc_sms_lobster( kt )    ! main program of LOBSTER
52      IF( lk_pisces  )   CALL trc_sms_pisces ( kt )    ! main program of PISCES
53      IF( lk_cfc     )   CALL trc_sms_cfc    ( kt )    ! surface fluxes of CFC
54      IF( lk_my_trc  )   CALL trc_sms_my_trc ( kt )    ! MY_TRC  tracers
55
56      IF(ln_ctl) THEN      ! print mean trends (used for debugging)
57         WRITE(charout, FMT="('sms ')")
58         CALL prt_ctl_trc_info( charout )
59         CALL prt_ctl_trc( tab4d=trn, mask=tmask, clinfo=ctrcnm )
60      ENDIF
61      !
62   END SUBROUTINE trc_sms
63
64#else
65   !!======================================================================
66   !!  Dummy module :                                     No passive tracer
67   !!======================================================================
68CONTAINS
69   SUBROUTINE trc_sms( kt )                   ! Empty routine
70      INTEGER, INTENT( in ) ::   kt
71      WRITE(*,*) 'trc_sms: You should not have seen this print! error?', kt
72   END SUBROUTINE trc_sms
73#endif 
74
75   !!======================================================================
76END MODULE  trcsms
Note: See TracBrowser for help on using the repository browser.