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