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

source: trunk/NEMO/TOP_SRC/SMS/trcage.F @ 186

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

CL + CE : NEMO TRC_SRC start

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