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

Last change on this file since 1179 was 1179, checked in by cetlod, 16 years ago

add new routines for the sediment model, see ticket:249

File size: 6.8 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   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpdta) :: &
57      trc_data           !: tracer data to share with sediment model
58#endif   
59
60   INTEGER, PUBLIC :: &
61      nitsed000, nitsedend, nwrised, nfreq
62
63   REAL(wp), PUBLIC, DIMENSION(:,:,:) , ALLOCATABLE ::   &
64      pwcp  ,      &     !: pore water sediment data at given time-step
65      pwcp0              !: pore water sediment data at initial time
66
67   REAL(wp), PUBLIC, DIMENSION(:,:,:) , ALLOCATABLE ::   &
68      solcp ,      &     !: solid sediment data at given time-step
69      solcp0             !: solid sediment at initial time
70
71   !! * Shared module variables
72   REAL(wp), PUBLIC, DIMENSION(:,:) , ALLOCATABLE ::   &
73      pwcp_dta           !: pore water data at given time-step
74
75   REAL(wp), PUBLIC, DIMENSION(:,:) , ALLOCATABLE ::   &
76      rainrm_dta,  &     !: rain data at at initial time
77      rainrm    ,  &     !: rain data at given time-step
78      rainrg    ,  &     !: rain of each solid component in [g/(cm**2.s)]
79      fromsed   ,  &     !:
80      tosed     ,  &     !:
81      rloss              !:
82
83   REAL(wp), PUBLIC, DIMENSION(:,:) , ALLOCATABLE  ::   &
84      tokbot             !:
85
86   REAL(wp), PUBLIC, DIMENSION(:) , ALLOCATABLE  ::   & 
87      temp  ,      &     !: temperature
88      salt  ,      &     !: salinity
89      press ,      &     !: pressure
90      raintg,      &     !: total massic flux rained in each cell (sum of sol. comp.)
91      dzdep              !: total thickness of solid material rained [cm] in each cell
92
93   REAL(wp), PUBLIC, DIMENSION(:,:) , ALLOCATABLE  ::   &
94      hipor  ,     &     !: [h+] in mol/kg*densSW
95      co3por             !: [co3--]solid sediment at initial time
96
97   REAL(wp), PUBLIC, DIMENSION(jpsol) ::   &
98      mol_wgt            !: molecular weight of solid sediment data
99
100   
101   !! Geometry
102   INTEGER, PUBLIC, SAVE :: &
103      jpoce ,  &             !: sediment points
104      indoce
105
106   INTEGER , PUBLIC, DIMENSION(:) , ALLOCATABLE  ::   &  !:
107      iarroce      !: ! Computation of 1D array of sediments points
108
109   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: &
110      epkbot             !: ocean bottom layer thickness
111
112   REAL(wp), PUBLIC, DIMENSION(:) , ALLOCATABLE  :: &
113      dzkbot             !: ocean bottom layer thickness in meters
114
115   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpksed) :: &
116      tmasksed           !: sediment mask
117
118   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: &
119      sbathy
120 
121   REAL(wp), PUBLIC, DIMENSION(jpksed) :: &
122      dz      ,    &     !: sediment layers thickness
123      por     ,    &     !: porosity profile     
124      por1    ,    &     !: 1 - por
125      profsed ,    &     !: depth of middle of each layer
126      volw    ,    &     !: volume of pore water cell fraction
127      vols    ,    &     !: volume of solid cell fraction
128      diff    ,    &     !: diffusion ceofficient
129      rdtsed             !:
130
131   REAL(wp), PUBLIC, DIMENSION(:,:) , ALLOCATABLE :: &
132      dz3d   ,     &     !:
133      volw3d ,     &     !:
134      vols3d             !:
135
136   REAL(wp)  ::    &
137      dens               !: density of solid material
138
139   !! Namelist
140   REAL(wp), PUBLIC, DIMENSION(5) :: &   
141      reac               !: reactivity rc in  [l.mol-1.s-1]
142
143   REAL(wp), PUBLIC       :: &   
144      sat_sil,      &     !: saturation concentration for silicate in [mol.l-1]
145      sat_clay,     &     !:                              clay   
146      reac_sil,     &     !: reactivity rc in  [l.mol-1.s-1]
147      reac_clay,    &     
148      reac_poc,     &     
149      reac_no3,     &     
150      reac_cal         
151
152   REAL(wp), PUBLIC    :: &   
153      so2ut   ,     &     !:
154      srno3   ,     &     !:
155      spo4r   ,     &     !:
156      srDnit  ,     &     !:
157      sthro2              !: threshold O2 concen. in [mol.l-1]
158
159   REAL(wp), PUBLIC    :: &   
160      pdb    = 0.0112372, & !: 13C/12C in PD Belemnite
161      rc13P  = 0.980    , & !: 13C/12C in POC = rc13P*PDB
162      rc13Ca = 1.001        !: 13C/12C in CaCO3 = rc13Ca*PDB
163
164   REAL(wp) , PUBLIC ::   &
165      dtsed  ,     &     !: sedimentation time step
166      db                 !: bioturb coefficient in [cm2.s-1]
167
168   !! Chemistry
169   REAL(wp), PUBLIC, DIMENSION(:) , ALLOCATABLE  :: &
170      densSW ,     &
171      borats ,     &
172      calcon2,     &
173      akbs   ,     &
174      ak1s   ,     &
175      ak2s   ,     &
176      akws   ,     &
177      ak12s  ,     &
178      ak1ps  ,     &
179      ak2ps  ,     &
180      ak3ps  ,     &
181      ak12ps ,     &
182      ak123ps,     &
183      aksis  ,     & 
184      aksps 
185
186   !! Inputs / Outputs
187   CHARACTER( len = 80 ), DIMENSION(jptrased) :: &
188      sedtrc3l 
189
190   CHARACTER( len = 20 ), DIMENSION(jptrased) :: &
191      sedtrc3d , sedtrc3u
192
193   CHARACTER( len = 80 ), DIMENSION(jpflxsed) :: &
194      sedtrc2l 
195
196   CHARACTER( len = 20 ), DIMENSION(jpflxsed) :: &
197      sedtrc2d , sedtrc2u
198
199
200   REAL(wp), DIMENSION(jpi,jpj,jpksed,jptrased) :: &
201      trcsedi
202
203   REAL(wp), DIMENSION(jpi,jpj,jpflxsed) :: &
204      flxsedi
205
206   !! Units
207   INTEGER, PUBLIC :: &
208     numsed = 27
209   
210#else
211   !!======================================================================
212   !! No Sediment model
213   !!======================================================================
214#endif
215
216END MODULE sed
Note: See TracBrowser for help on using the repository browser.