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

source: trunk/NEMO/TOP_SRC/SED/sed.F90 @ 1312

Last change on this file since 1312 was 1250, checked in by cetlod, 15 years ago

update modules of sediment model to take into account minor modifications, see ticket:297

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