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_lobster.F90 in branches/nemo_v3_3_beta/NEMOGCM/NEMO/TOP_SRC/LOBSTER – NEMO

source: branches/nemo_v3_3_beta/NEMOGCM/NEMO/TOP_SRC/LOBSTER/trcsms_lobster.F90 @ 2287

Last change on this file since 2287 was 2287, checked in by smasson, 14 years ago

update licence of all NEMO files...

  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1MODULE trcsms_lobster
2   !!======================================================================
3   !!                         ***  MODULE trcsms_lobster  ***
4   !! TOP :   Time loop of LOBSTER model
5   !!======================================================================
6   !! History :   1.0  !            M. Levy
7   !!             2.0  !  2007-12  (C. Ethe, G. Madec)  revised architecture
8   !!----------------------------------------------------------------------
9#if defined key_lobster
10   !!----------------------------------------------------------------------
11   !!   'key_lobster'                                       LOBSTER bio-model
12   !!----------------------------------------------------------------------
13   !!   trcsms_lobster        :  Time loop of passive tracers sms
14   !!----------------------------------------------------------------------
15   USE oce_trc         !
16   USE trc
17   USE trcbio
18   USE trcopt
19   USE trcsed
20   USE trcexp
21   USE trdmod_oce
22   USE trdmod_trc_oce
23   USE trdmod_trc
24   USE trdmld_trc
25
26   IMPLICIT NONE
27   PRIVATE
28
29   PUBLIC   trc_sms_lobster    ! called in trcsms.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   !!----------------------------------------------------------------------
36
37CONTAINS
38
39   SUBROUTINE trc_sms_lobster( kt )
40      !!---------------------------------------------------------------------
41      !!                     ***  ROUTINE trc_sms_lobster  ***
42      !!
43      !! ** Purpose :  Managment of the call to Biological sources and sinks
44      !!               routines of LOBSTER bio-model
45      !!
46      !! ** Method  : - ???
47      !! -------------------------------------------------------------------------------------
48      INTEGER, INTENT( in ) ::   kt      ! ocean time-step index     
49      INTEGER :: jn
50      REAL(wp), DIMENSION(jpi,jpj,jpk) ::   ztrlob   ! used for lobster sms trends
51      !!
52
53      CALL trc_opt( kt )      ! optical model
54      CALL trc_bio( kt )      ! biological model
55      CALL trc_sed( kt )      ! sedimentation model
56      CALL trc_exp( kt )      ! export
57
58      IF( l_trdtrc ) THEN
59          DO jn = jp_lob0, jp_lob1
60            ztrlob(:,:,:) = tra(:,:,:,jn)
61            CALL trd_mod_trc( ztrlob, jn, jptra_trd_sms, kt )   ! save trends
62          END DO
63      END IF
64
65      IF( lk_trdmld_trc )  CALL trd_mld_bio( kt )   ! trends: Mixed-layer
66
67   END SUBROUTINE trc_sms_lobster
68
69#else
70   !!======================================================================
71   !!  Dummy module :                                     No passive tracer
72   !!======================================================================
73CONTAINS
74   SUBROUTINE trc_sms_lobster( kt )                   ! Empty routine
75      INTEGER, INTENT( in ) ::   kt
76      WRITE(*,*) 'trc_sms_lobster: You should not have seen this print! error?', kt
77   END SUBROUTINE trc_sms_lobster
78#endif 
79
80   !!======================================================================
81END MODULE  trcsms_lobster
Note: See TracBrowser for help on using the repository browser.