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

source: branches/nemo_v3_3_beta/NEMOGCM/NEMO/TOP_SRC/MY_TRC/trcsms_my_trc.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.2 KB
Line 
1MODULE trcsms_my_trc
2   !!======================================================================
3   !!                         ***  MODULE trcsms_my_trc  ***
4   !! TOP :   Main module of the MY_TRC tracers
5   !!======================================================================
6   !! History :   2.0  !  2007-12  (C. Ethe, G. Madec) Original code
7   !!----------------------------------------------------------------------
8#if defined key_my_trc
9   !!----------------------------------------------------------------------
10   !!   'key_my_trc'                                               CFC tracers
11   !!----------------------------------------------------------------------
12   !! trc_sms_my_trc   : MY_TRC model main routine
13   !!----------------------------------------------------------------------
14   USE par_trc         ! TOP parameters
15   USE oce_trc         ! Ocean variables
16   USE trc             ! TOP variables
17   USE trdmod_oce
18   USE trdmod_trc
19
20   IMPLICIT NONE
21   PRIVATE
22
23   PUBLIC   trc_sms_my_trc   ! called by trcsms.F90 module
24
25   !!----------------------------------------------------------------------
26   !! NEMO/TOP 3.3 , NEMO Consortium (2010)
27   !! $Id$
28   !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt)
29   !!----------------------------------------------------------------------
30
31CONTAINS
32
33   SUBROUTINE trc_sms_my_trc( kt )
34      !!----------------------------------------------------------------------
35      !!                     ***  trc_sms_my_trc  *** 
36      !!
37      !! ** Purpose :   main routine of MY_TRC model
38      !!
39      !! ** Method  : -
40      !!----------------------------------------------------------------------
41      INTEGER, INTENT(in) :: kt   ! ocean time-step index
42      REAL(wp), DIMENSION(jpi,jpj,jpk)    ::   ztrmyt 
43      INTEGER :: jn
44
45
46      IF(lwp) WRITE(numout,*)
47      IF(lwp) WRITE(numout,*) ' trc_sms_my_trc:  MY_TRC model'
48      IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~~~~'
49
50      WHERE( (glamt <= 170) .AND. (glamt >= 160) .AND. (gphit <= -74) .AND. (gphit >=-75.6) )
51        trn(:,:,1,jpmyt1) = 1.
52        trb(:,:,1,jpmyt1) = 1.
53        tra(:,:,1,jpmyt1) = 0.
54      END WHERE
55
56      WHERE( ((glamt <= -165) .OR. (glamt >= 160)) .AND. (gphit <= -76) .AND. (gphit >=-80)) 
57        trn(:,:,1,jpmyt2) = 1.
58        trb(:,:,1,jpmyt2) = 1.
59        tra(:,:,1,jpmyt2) = 0.
60      END WHERE
61
62      ! Save the trends in the ixed layer
63      IF( l_trdtrc ) THEN
64          DO jn = jp_myt0, jp_myt1
65            ztrmyt(:,:,:) = tra(:,:,:,jn)
66            CALL trd_mod_trc( ztrmyt, jn, jptra_trd_sms, kt )   ! save trends
67          END DO
68      END IF
69      !
70   END SUBROUTINE trc_sms_my_trc
71   
72#else
73   !!----------------------------------------------------------------------
74   !!   Dummy module                                        No MY_TRC model
75   !!----------------------------------------------------------------------
76CONTAINS
77   SUBROUTINE trc_sms_my_trc( kt )             ! Empty routine
78      INTEGER, INTENT( in ) ::   kt
79      WRITE(*,*) 'trc_sms_my_trc: You should not have seen this print! error?', kt
80   END SUBROUTINE trc_sms_my_trc
81#endif
82
83   !!======================================================================
84END MODULE trcsms_my_trc
Note: See TracBrowser for help on using the repository browser.