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.
sed.F90 in branches/DEV_r2006_merge_TRA_TRC/NEMO/TOP_SRC/SED – NEMO

source: branches/DEV_r2006_merge_TRA_TRC/NEMO/TOP_SRC/SED/sed.F90 @ 2093

Last change on this file since 2093 was 2082, checked in by cetlod, 14 years ago

Improve the merge of TRA-TRC, see ticket #717

File size: 7.4 KB
Line 
1MODULE sed
2   !!======================================================================
3   !!                        ***  sed  ***
4   !! Sediment :   set sediment global variables
5   !!======================================================================
6#if defined key_sed
7   !! History :
8   !!        !  06-12  (C. Ethe)  Orignal
9   !!----------------------------------------------------------------------
10   USE par_sed
11
12   USE in_out_manager
13
14   USE dom_oce , ONLY :       &
15      nidom    =>   nidom  ,  & !:
16      glamt    =>   glamt  ,  & !: longitude of t-point (degre)
17      gphit    =>   gphit  ,  & !: latitude  of t-point (degre)
18      e3t_0    =>   e3t_0  ,  & !: reference depth of t-points (m)
19      mbathy   =>   mbathy ,  & !: bathymetry
20      tmask    =>   tmask  ,  & !: land/ocean mask at t-points
21      rdt      =>   rdt         !: time step for the dynamics
22
23      nyear     =>   nyear    ,   & !: Current year
24      nmonth    =>   nmonth   ,   & !: Current month
25      nday      =>   nday     ,   & !: Current day
26      ndastp    =>   ndastp   ,   & !: time step date in year/month/day aammjj
27      nday_year =>   nday_year,   & !: curent day counted from jan 1st of the current year
28      adatrj    =>   adatrj         !: number of elapsed days since the begining of the run
29   !                                !: it is the accumulated duration of previous runs
30   !                                !: that may have been run with different time steps.
31
32
33#if ! defined key_sed_off
34
35   USE oce , ONLY :            &
36      tsn      =>    tsn       & !: pot. temperature (celsius) and salinity (psu)
37
38   USE trc, ONLY :  &
39      trn        , & !: tracer
40      nittrc000  , & !: 1st time step of tracer model
41      nwritetrc      !: outputs frequency of tracer model
42
43   USE p4zsink, ONLY :  &
44      sinking  ,     & !: sinking flux for POC
45#if ! defined key_kriest
46      sinking2 ,     & !: sinking flux for GOC
47#endif
48      sinkcal ,      & !: sinking flux for calcite
49      sinksil          !: sinking flux for opal ( dsi )
50
51   USE sms_pisces, ONLY :  &
52      akb3  ,     & 
53      ak13  ,     & 
54      ak23  ,     & 
55      akw3  ,     & 
56      aksp  ,     & 
57      borat 
58
59#endif   
60
61   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpdta) :: &
62      trc_data           !: tracer data to share with sediment model
63
64   INTEGER, PUBLIC :: &
65      nitsed000, nitsedend, nwrised, nfreq
66
67   REAL(wp), PUBLIC, DIMENSION(:,:,:) , ALLOCATABLE ::   &
68      pwcp  ,      &     !: pore water sediment data at given time-step
69      pwcp0              !: pore water sediment data at initial time
70
71   REAL(wp), PUBLIC, DIMENSION(:,:,:) , ALLOCATABLE ::   &
72      solcp ,      &     !: solid sediment data at given time-step
73      solcp0             !: solid sediment at initial time
74
75   !! * Shared module variables
76   REAL(wp), PUBLIC, DIMENSION(:,:) , ALLOCATABLE ::   &
77      pwcp_dta           !: pore water data at given time-step
78
79   REAL(wp), PUBLIC, DIMENSION(:,:) , ALLOCATABLE ::   &
80      rainrm_dta,  &     !: rain data at at initial time
81      rainrm    ,  &     !: rain data at given time-step
82      rainrg    ,  &     !: rain of each solid component in [g/(cm**2.s)]
83      fromsed   ,  &     !:
84      tosed     ,  &     !:
85      rloss              !:
86
87   REAL(wp), PUBLIC, DIMENSION(:,:) , ALLOCATABLE  ::   &
88      tokbot             !:
89
90   REAL(wp), PUBLIC, DIMENSION(:) , ALLOCATABLE  ::   & 
91      temp  ,      &     !: temperature
92      salt  ,      &     !: salinity
93      press ,      &     !: pressure
94      raintg,      &     !: total massic flux rained in each cell (sum of sol. comp.)
95      dzdep              !: total thickness of solid material rained [cm] in each cell
96
97   REAL(wp), PUBLIC, DIMENSION(:,:) , ALLOCATABLE  ::   &
98      hipor  ,     &     !: [h+] in mol/kg*densSW
99      co3por             !: [co3--]solid sediment at initial time
100
101   REAL(wp), PUBLIC, DIMENSION(jpsol) ::   &
102      mol_wgt            !: molecular weight of solid sediment data
103
104   
105   !! Geometry
106   INTEGER, PUBLIC, SAVE :: &
107      jpoce ,  &             !: sediment points
108      indoce
109
110   INTEGER , PUBLIC, DIMENSION(:) , ALLOCATABLE  ::   &  !:
111      iarroce      !: ! Computation of 1D array of sediments points
112
113   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: &
114      epkbot             !: ocean bottom layer thickness
115
116   REAL(wp), PUBLIC, DIMENSION(:) , ALLOCATABLE  :: &
117      dzkbot             !: ocean bottom layer thickness in meters
118
119   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpksed) :: &
120      tmasksed           !: sediment mask
121
122   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: &
123      sbathy
124 
125   REAL(wp), PUBLIC, DIMENSION(jpksed) :: &
126      dz      ,    &     !: sediment layers thickness
127      por     ,    &     !: porosity profile     
128      por1    ,    &     !: 1 - por
129      profsed ,    &     !: depth of middle of each layer
130      volw    ,    &     !: volume of pore water cell fraction
131      vols    ,    &     !: volume of solid cell fraction
132      diff    ,    &     !: diffusion ceofficient
133      rdtsed             !:
134
135   REAL(wp), PUBLIC, DIMENSION(:,:) , ALLOCATABLE :: &
136      dz3d   ,     &     !:
137      volw3d ,     &     !:
138      vols3d             !:
139
140   REAL(wp)  ::    &
141      dens               !: density of solid material
142
143   !! Namelist
144   REAL(wp), PUBLIC, DIMENSION(5) :: &   
145      reac               !: reactivity rc in  [l.mol-1.s-1]
146
147   REAL(wp), PUBLIC       :: &   
148      sat_sil,      &     !: saturation concentration for silicate in [mol.l-1]
149      sat_clay,     &     !:                              clay   
150      reac_sil,     &     !: reactivity rc in  [l.mol-1.s-1]
151      reac_clay,    &     
152      reac_poc,     &     
153      reac_no3,     &     
154      reac_cal         
155
156   REAL(wp), PUBLIC    :: &   
157      so2ut   ,     &     !:
158      srno3   ,     &     !:
159      spo4r   ,     &     !:
160      srDnit  ,     &     !:
161      sthro2              !: threshold O2 concen. in [mol.l-1]
162
163   REAL(wp), PUBLIC    :: &   
164      pdb    = 0.0112372, & !: 13C/12C in PD Belemnite
165      rc13P  = 0.980    , & !: 13C/12C in POC = rc13P*PDB
166      rc13Ca = 1.001        !: 13C/12C in CaCO3 = rc13Ca*PDB
167
168   REAL(wp) , PUBLIC ::   &
169      dtsed  ,     &     !: sedimentation time step
170      db                 !: bioturb coefficient in [cm2.s-1]
171
172   !! Chemistry
173   REAL(wp), PUBLIC, DIMENSION(:) , ALLOCATABLE  :: &
174      densSW ,     &
175      borats ,     &
176      calcon2,     &
177      akbs   ,     &
178      ak1s   ,     &
179      ak2s   ,     &
180      akws   ,     &
181      ak12s  ,     &
182      ak1ps  ,     &
183      ak2ps  ,     &
184      ak3ps  ,     &
185      ak12ps ,     &
186      ak123ps,     &
187      aksis  ,     & 
188      aksps 
189
190   !! Inputs / Outputs
191   CHARACTER( len = 80 ), DIMENSION(jptrased) :: &
192      sedtrcl
193   CHARACTER( len = 20 ), DIMENSION(jptrased) :: &
194      sedtrcd , sedtrcu
195
196   CHARACTER( len = 80 ), DIMENSION(jpdia3dsed) :: &
197      seddia3l 
198   CHARACTER( len = 20 ), DIMENSION(jpdia3dsed) :: &
199      seddia3d , seddia3u
200
201   CHARACTER( len = 80 ), DIMENSION(jpdia2dsed) :: &
202      seddia2l 
203   CHARACTER( len = 20 ), DIMENSION(jpdia2dsed) :: &
204      seddia2d , seddia2u
205
206   REAL(wp), DIMENSION(jpi,jpj,jpksed,jptrased) :: &
207      trcsedi
208   REAL(wp), DIMENSION(jpi,jpj,jpksed,jpdia3dsed) :: &
209      flxsedi3d
210   REAL(wp), DIMENSION(jpi,jpj,jpdia2dsed) :: &
211      flxsedi2d
212
213   !! Units
214   INTEGER, PUBLIC :: &
215     numsed = 27
216#else
217   !!======================================================================
218   !! No Sediment model
219   !!======================================================================
220#endif
221
222END MODULE sed
Note: See TracBrowser for help on using the repository browser.