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

source: branches/UKMO/dev_r5518_medusa_chg_trc_bio_medusa/NEMOGCM/NEMO/TOP_SRC/trcsms.F90 @ 7912

Last change on this file since 7912 was 7912, checked in by marc, 7 years ago

Moved initialisation from trcbio_medusa.F90 into bio_medusa_init.F90

File size: 4.6 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_medusa      ! MEDUSA tracers
19   USE trcsms_idtra       ! Idealize Tracer
20   USE trcsms_cfc         ! CFC 11 & 12
21   USE trcsms_c14b        ! C14b tracer
22   USE trcsms_age         ! AGE tracer
23   USE trcsms_my_trc      ! MY_TRC  tracers
24   USE prtctl_trc         ! Print control for debbuging
25
26   IMPLICIT NONE
27   PRIVATE
28
29   PUBLIC   trc_sms    ! called in trcstp.F90
30
31   !!----------------------------------------------------------------------
32   !! NEMO/TOP 3.3 , NEMO Consortium (2010)
33   !! $Id$
34   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
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      INTEGER            ::  jn
49      CHARACTER (len=25) :: charout
50      !!---------------------------------------------------------------------
51      !
52      IF( nn_timing == 1 )   CALL timing_start('trc_sms')
53      !
54      IF( lk_pisces  )   CALL trc_sms_pisces ( kt )    ! main program of PISCES
55! tmp - marc
56      write(numout,*) 'bbb32. before call to trc_bio_medusa'
57      flush(numout)
58!
59      IF( lk_medusa  )   CALL trc_sms_medusa ( kt )    ! MEDUSA  tracers
60! tmp - marc
61      write(numout,*) 'bbb33. after call to trc_bio_medusa'
62      flush(numout)
63!
64# if defined key_debug_medusa
65         IF(lwp) WRITE(numout,*) '--trcsms : MEDUSA OK --  next IDTRA -- '
66      CALL flush(numout)
67# endif
68      IF( lk_idtra   )   CALL trc_sms_idtra  ( kt )    ! radioactive decay of Id. tracer
69# if defined key_debug_medusa
70         IF(lwp) WRITE(numout,*) '--trcsms : IDTRA OK --  next CFC -- '
71      CALL flush(numout)
72# endif
73      IF( lk_cfc     )   CALL trc_sms_cfc    ( kt )    ! surface fluxes of CFC
74# if defined key_debug_medusa
75         IF(lwp) WRITE(numout,*) '--trcsms : CFC OK --  next C14 -- '
76      CALL flush(numout)
77# endif
78      IF( lk_c14b    )   CALL trc_sms_c14b   ( kt )    ! surface fluxes of C14
79# if defined key_debug_medusa
80         IF(lwp) WRITE(numout,*) '--trcsms : C14 OK --  next C14 -- '
81      CALL flush(numout)
82# endif
83      IF( lk_age     )   CALL trc_sms_age    ( kt )    ! AGE tracer
84# if defined key_debug_medusa
85         IF(lwp) WRITE(numout,*) '--trcsms : Age OK --  Continue  -- '
86      CALL flush(numout)
87# endif
88      IF( lk_my_trc  )   CALL trc_sms_my_trc ( kt )    ! MY_TRC  tracers
89
90      IF(ln_ctl) THEN      ! print mean trends (used for debugging)
91         WRITE(charout, FMT="('sms ')")
92         CALL prt_ctl_trc_info( charout )
93         CALL prt_ctl_trc( tab4d=trn, mask=tmask, clinfo=ctrcnm )
94      ENDIF
95      !
96      IF( nn_timing == 1 )   CALL timing_stop('trc_sms')
97      !
98   END SUBROUTINE trc_sms
99
100#else
101   !!======================================================================
102   !!  Dummy module :                                     No passive tracer
103   !!======================================================================
104CONTAINS
105   SUBROUTINE trc_sms( kt )                   ! Empty routine
106      INTEGER, INTENT( in ) ::   kt
107      WRITE(*,*) 'trc_sms: You should not have seen this print! error?', kt
108   END SUBROUTINE trc_sms
109#endif 
110
111   !!======================================================================
112END MODULE  trcsms
Note: See TracBrowser for help on using the repository browser.