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 @ 247

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

CL : Add CVS Header and CeCILL licence information

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