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.
trcage.F in tags/nemo_v1_04/NEMO/TOP_SRC/SMS – NEMO

source: tags/nemo_v1_04/NEMO/TOP_SRC/SMS/trcage.F @ 280

Last change on this file since 280 was 274, checked in by opalod, 19 years ago

nemo_v1_update_005:RB: update headers for the TOP component.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
Line 
1CCC$Header$
2CCC  TOP 1.0 , LOCEAN-IPSL (2005)
3C This software is governed by CeCILL licence see modipsl/doc/NEMO_CeCILL.txt
4C ---------------------------------------------------------------------------
5CDIR$ LIST
6      SUBROUTINE trcage(kt)
7CCC---------------------------------------------------------------------
8CCC
9CCC                       ROUTINE trcage
10CCC                     *******************
11CCC
12CCC  PURPOSE :
13CCC  ---------
14CCC     Compute the source for the age tracer
15CCC
16CCC
17CC   METHOD :
18CC   -------
19CC
20CC      multitasked on vertical slab (jj-loop)
21CC      surface concentration is restored to 0 with a 
22CC      time constant set to 7 days
23CC
24CC
25CC   INPUT :
26CC   -----
27CC      argument
28CC              ktask           : task identificator
29CC              kt              : time step
30CC      COMMON
31CC            /comcoo/          : orthogonal curvilinear coordinates
32CC                                and scale factors
33CC                                depths
34CC            /comtsk/          : multitasking
35CC
36CC   OUTPUT :
37CC   ------
38CC
39CC   WORKSPACE :
40CC   ---------
41CC      COMMON
42CC
43CC   EXTERNAL :                   no
44CC   --------
45CC
46CC   REFERENCES :                 no
47CC   ----------
48CC
49CC   MODIFICATIONS:
50CC   --------------
51CC       original : 02-05 (K. Rodgers and O. Aumont)
52CC----------------------------------------------------------------------
53
54      USE oce_trc
55      USE trp_trc
56      USE sms
57      IMPLICIT NONE
58
59CCC---------------------------------------------------------------------
60CCC  OPA8, LODYC (11/96)
61CCC---------------------------------------------------------------------
62CC----------------------------------------------------------------------
63CC local declarations
64CC ==================
65      INTEGER kt
66
67#if defined key_passivetrc
68#    if defined key_trc_age
69C
70      INTEGER ji,jj,jk
71CC----------------------------------------------------------------------
72
73CCC---------------------------------------------------------------------
74CCC  OPA8, LODYC (15/11/96)
75CCC---------------------------------------------------------------------
76C
77C
78C 1. Restore surface concentrations to 0 for age concentration
79C    and 1 for component concentration
80C ------------------------------------------------------------
81C
82       DO jj = 1,jpj
83         DO ji = 1,jpi
84             tra(ji,jj,1,2)=-trn(ji,jj,1,2)/(tauage1*rjjss)
85             tra(ji,jj,1,1)=(1.-trn(ji,jj,1,1))/(tauage1*rjjss)
86         END DO
87       END DO
88C
89C 2. Increase sub-surface age concentrations so that the 
90C    concentration is increased by 1 after tauage years
91C --------------------------------------------------
92C
93        DO jk = 2,jpk
94          DO jj = 1,jpj
95            DO ji = 1,jpi
96               tra(ji,jj,jk,2)=tra(ji,jj,jk,2)+trn(ji,jj,jk,1)
97     &                          /(tauage2*raass)
98            END DO
99          END DO
100        END DO
101C
102#    else
103C
104C    No optical model
105C
106#    endif
107#else
108C
109C no passive tracers
110C
111#endif
112C
113      RETURN
114      END
Note: See TracBrowser for help on using the repository browser.