[3443] | 1 | MODULE p4zche |
---|
| 2 | !!====================================================================== |
---|
| 3 | !! *** MODULE p4zche *** |
---|
| 4 | !! TOP : PISCES Sea water chemistry computed following OCMIP protocol |
---|
| 5 | !!====================================================================== |
---|
| 6 | !! History : OPA ! 1988 (E. Maier-Reimer) Original code |
---|
| 7 | !! - ! 1998 (O. Aumont) addition |
---|
| 8 | !! - ! 1999 (C. Le Quere) modification |
---|
| 9 | !! NEMO 1.0 ! 2004 (O. Aumont) modification |
---|
| 10 | !! - ! 2006 (R. Gangsto) modification |
---|
| 11 | !! 2.0 ! 2007-12 (C. Ethe, G. Madec) F90 |
---|
| 12 | !! ! 2011-02 (J. Simeon, J.Orr ) update O2 solubility constants |
---|
| 13 | !!---------------------------------------------------------------------- |
---|
| 14 | #if defined key_pisces |
---|
| 15 | !!---------------------------------------------------------------------- |
---|
| 16 | !! 'key_pisces' PISCES bio-model |
---|
| 17 | !!---------------------------------------------------------------------- |
---|
| 18 | !! p4z_che : Sea water chemistry computed following OCMIP protocol |
---|
| 19 | !!---------------------------------------------------------------------- |
---|
| 20 | USE oce_trc ! shared variables between ocean and passive tracers |
---|
| 21 | USE trc ! passive tracers common variables |
---|
| 22 | USE sms_pisces ! PISCES Source Minus Sink variables |
---|
| 23 | USE lib_mpp ! MPP library |
---|
| 24 | |
---|
| 25 | IMPLICIT NONE |
---|
| 26 | PRIVATE |
---|
| 27 | |
---|
| 28 | PUBLIC p4z_che ! |
---|
| 29 | PUBLIC p4z_che_alloc ! |
---|
| 30 | |
---|
| 31 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: sio3eq ! chemistry of Si |
---|
| 32 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: fekeq ! chemistry of Fe |
---|
[6498] | 33 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: chemc ! Solubilities of O2 and CO2 |
---|
| 34 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: chemo2 ! Solubilities of O2 and CO2 |
---|
[3443] | 35 | |
---|
| 36 | REAL(wp), PUBLIC :: atcox = 0.20946 ! units atm |
---|
| 37 | |
---|
| 38 | REAL(wp) :: salchl = 1. / 1.80655 ! conversion factor for salinity --> chlorinity (Wooster et al. 1969) |
---|
| 39 | REAL(wp) :: o2atm = 1. / ( 1000. * 0.20946 ) |
---|
| 40 | |
---|
| 41 | REAL(wp) :: akcc1 = -171.9065 ! coeff. for apparent solubility equilibrium |
---|
| 42 | REAL(wp) :: akcc2 = -0.077993 ! Millero et al. 1995 from Mucci 1983 |
---|
| 43 | REAL(wp) :: akcc3 = 2839.319 |
---|
| 44 | REAL(wp) :: akcc4 = 71.595 |
---|
| 45 | REAL(wp) :: akcc5 = -0.77712 |
---|
| 46 | REAL(wp) :: akcc6 = 0.00284263 |
---|
| 47 | REAL(wp) :: akcc7 = 178.34 |
---|
| 48 | REAL(wp) :: akcc8 = -0.07711 |
---|
| 49 | REAL(wp) :: akcc9 = 0.0041249 |
---|
| 50 | |
---|
| 51 | REAL(wp) :: rgas = 83.143 ! universal gas constants |
---|
| 52 | REAL(wp) :: oxyco = 1. / 22.4144 ! converts from liters of an ideal gas to moles |
---|
| 53 | |
---|
| 54 | REAL(wp) :: bor1 = 0.00023 ! borat constants |
---|
| 55 | REAL(wp) :: bor2 = 1. / 10.82 |
---|
| 56 | |
---|
| 57 | REAL(wp) :: ca0 = -162.8301 ! WEISS & PRICE 1980, units mol/(kg atm) |
---|
| 58 | REAL(wp) :: ca1 = 218.2968 |
---|
| 59 | REAL(wp) :: ca2 = 90.9241 |
---|
| 60 | REAL(wp) :: ca3 = -1.47696 |
---|
| 61 | REAL(wp) :: ca4 = 0.025695 |
---|
| 62 | REAL(wp) :: ca5 = -0.025225 |
---|
| 63 | REAL(wp) :: ca6 = 0.0049867 |
---|
| 64 | |
---|
| 65 | REAL(wp) :: c10 = -3670.7 ! Coeff. for 1. dissoc. of carbonic acid (Edmond and Gieskes, 1970) |
---|
| 66 | REAL(wp) :: c11 = 62.008 |
---|
| 67 | REAL(wp) :: c12 = -9.7944 |
---|
| 68 | REAL(wp) :: c13 = 0.0118 |
---|
| 69 | REAL(wp) :: c14 = -0.000116 |
---|
| 70 | |
---|
| 71 | REAL(wp) :: c20 = -1394.7 ! coeff. for 2. dissoc. of carbonic acid (Millero, 1995) |
---|
| 72 | REAL(wp) :: c21 = -4.777 |
---|
| 73 | REAL(wp) :: c22 = 0.0184 |
---|
| 74 | REAL(wp) :: c23 = -0.000118 |
---|
| 75 | |
---|
| 76 | REAL(wp) :: st1 = 0.14 ! constants for calculate concentrations for sulfate |
---|
| 77 | REAL(wp) :: st2 = 1./96.062 ! (Morris & Riley 1966) |
---|
| 78 | |
---|
| 79 | REAL(wp) :: ft1 = 0.000067 ! constants for calculate concentrations for fluorides |
---|
| 80 | REAL(wp) :: ft2 = 1./18.9984 ! (Dickson & Riley 1979 ) |
---|
| 81 | |
---|
| 82 | ! ! volumetric solubility constants for o2 in ml/L |
---|
| 83 | REAL(wp) :: ox0 = 2.00856 ! from Table 1 for Eq 8 of Garcia and Gordon, 1992. |
---|
| 84 | REAL(wp) :: ox1 = 3.22400 ! corrects for moisture and fugacity, but not total atmospheric pressure |
---|
| 85 | REAL(wp) :: ox2 = 3.99063 ! Original PISCES code noted this was a solubility, but |
---|
| 86 | REAL(wp) :: ox3 = 4.80299 ! was in fact a bunsen coefficient with units L-O2/(Lsw atm-O2) |
---|
| 87 | REAL(wp) :: ox4 = 9.78188e-1 ! Hence, need to divide EXP( zoxy ) by 1000, ml-O2 => L-O2 |
---|
| 88 | REAL(wp) :: ox5 = 1.71069 ! and atcox = 0.20946 to add the 1/atm dimension. |
---|
| 89 | REAL(wp) :: ox6 = -6.24097e-3 |
---|
| 90 | REAL(wp) :: ox7 = -6.93498e-3 |
---|
| 91 | REAL(wp) :: ox8 = -6.90358e-3 |
---|
| 92 | REAL(wp) :: ox9 = -4.29155e-3 |
---|
| 93 | REAL(wp) :: ox10 = -3.11680e-7 |
---|
| 94 | |
---|
[3557] | 95 | ! ! coeff. for seawater pressure correction : millero 95 |
---|
| 96 | ! ! AGRIF doesn't like the DATA instruction |
---|
| 97 | REAL(wp) :: devk11 = -25.5 |
---|
| 98 | REAL(wp) :: devk12 = -15.82 |
---|
| 99 | REAL(wp) :: devk13 = -29.48 |
---|
| 100 | REAL(wp) :: devk14 = -25.60 |
---|
| 101 | REAL(wp) :: devk15 = -48.76 |
---|
| 102 | ! |
---|
| 103 | REAL(wp) :: devk21 = 0.1271 |
---|
| 104 | REAL(wp) :: devk22 = -0.0219 |
---|
| 105 | REAL(wp) :: devk23 = 0.1622 |
---|
| 106 | REAL(wp) :: devk24 = 0.2324 |
---|
| 107 | REAL(wp) :: devk25 = 0.5304 |
---|
| 108 | ! |
---|
| 109 | REAL(wp) :: devk31 = 0. |
---|
| 110 | REAL(wp) :: devk32 = 0. |
---|
| 111 | REAL(wp) :: devk33 = 2.608E-3 |
---|
| 112 | REAL(wp) :: devk34 = -3.6246E-3 |
---|
| 113 | REAL(wp) :: devk35 = 0. |
---|
| 114 | ! |
---|
| 115 | REAL(wp) :: devk41 = -3.08E-3 |
---|
| 116 | REAL(wp) :: devk42 = 1.13E-3 |
---|
| 117 | REAL(wp) :: devk43 = -2.84E-3 |
---|
| 118 | REAL(wp) :: devk44 = -5.13E-3 |
---|
| 119 | REAL(wp) :: devk45 = -11.76E-3 |
---|
| 120 | ! |
---|
| 121 | REAL(wp) :: devk51 = 0.0877E-3 |
---|
| 122 | REAL(wp) :: devk52 = -0.1475E-3 |
---|
| 123 | REAL(wp) :: devk53 = 0. |
---|
| 124 | REAL(wp) :: devk54 = 0.0794E-3 |
---|
| 125 | REAL(wp) :: devk55 = 0.3692E-3 |
---|
[3443] | 126 | |
---|
| 127 | !!* Substitution |
---|
| 128 | #include "top_substitute.h90" |
---|
| 129 | !!---------------------------------------------------------------------- |
---|
| 130 | !! NEMO/TOP 3.3 , NEMO Consortium (2010) |
---|
[6486] | 131 | !! $Id$ |
---|
[3443] | 132 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
| 133 | !!---------------------------------------------------------------------- |
---|
| 134 | CONTAINS |
---|
| 135 | |
---|
| 136 | SUBROUTINE p4z_che |
---|
| 137 | !!--------------------------------------------------------------------- |
---|
| 138 | !! *** ROUTINE p4z_che *** |
---|
| 139 | !! |
---|
| 140 | !! ** Purpose : Sea water chemistry computed following OCMIP protocol |
---|
| 141 | !! |
---|
| 142 | !! ** Method : - ... |
---|
| 143 | !!--------------------------------------------------------------------- |
---|
| 144 | INTEGER :: ji, jj, jk |
---|
| 145 | REAL(wp) :: ztkel, zt , zt2 , zsal , zsal2 , zbuf1 , zbuf2 |
---|
| 146 | REAL(wp) :: ztgg , ztgg2, ztgg3 , ztgg4 , ztgg5 |
---|
| 147 | REAL(wp) :: zpres, ztc , zcl , zcpexp, zoxy , zcpexp2 |
---|
| 148 | REAL(wp) :: zsqrt, ztr , zlogt , zcek1 |
---|
| 149 | REAL(wp) :: zis , zis2 , zsal15, zisqrt |
---|
| 150 | REAL(wp) :: zckb , zck1 , zck2 , zckw , zak1 , zak2 , zakb , zaksp0, zakw |
---|
| 151 | REAL(wp) :: zst , zft , zcks , zckf , zaksp1 |
---|
| 152 | !!--------------------------------------------------------------------- |
---|
| 153 | ! |
---|
| 154 | IF( nn_timing == 1 ) CALL timing_start('p4z_che') |
---|
| 155 | ! |
---|
| 156 | ! CHEMICAL CONSTANTS - SURFACE LAYER |
---|
| 157 | ! ---------------------------------- |
---|
| 158 | !CDIR NOVERRCHK |
---|
| 159 | DO jj = 1, jpj |
---|
| 160 | !CDIR NOVERRCHK |
---|
| 161 | DO ji = 1, jpi |
---|
| 162 | ! ! SET ABSOLUTE TEMPERATURE |
---|
[6498] | 163 | ztkel = tsn(ji,jj,1,jp_tem) + 273.15 |
---|
[3443] | 164 | zt = ztkel * 0.01 |
---|
| 165 | zt2 = zt * zt |
---|
| 166 | zsal = tsn(ji,jj,1,jp_sal) + ( 1.- tmask(ji,jj,1) ) * 35. |
---|
| 167 | zsal2 = zsal * zsal |
---|
| 168 | zlogt = LOG( zt ) |
---|
| 169 | ! ! LN(K0) OF SOLUBILITY OF CO2 (EQ. 12, WEISS, 1980) |
---|
| 170 | ! ! AND FOR THE ATMOSPHERE FOR NON IDEAL GAS |
---|
| 171 | zcek1 = ca0 + ca1 / zt + ca2 * zlogt + ca3 * zt2 + zsal * ( ca4 + ca5 * zt + ca6 * zt2 ) |
---|
| 172 | ! ! SET SOLUBILITIES OF O2 AND CO2 |
---|
[6498] | 173 | chemc(ji,jj) = EXP( zcek1 ) * 1.e-6 * rhop(ji,jj,1) / 1000. ! mol/(L uatm) |
---|
[3443] | 174 | ! |
---|
| 175 | END DO |
---|
| 176 | END DO |
---|
| 177 | |
---|
| 178 | ! OXYGEN SOLUBILITY - DEEP OCEAN |
---|
| 179 | ! ------------------------------- |
---|
| 180 | !CDIR NOVERRCHK |
---|
| 181 | DO jk = 1, jpk |
---|
| 182 | !CDIR NOVERRCHK |
---|
| 183 | DO jj = 1, jpj |
---|
| 184 | !CDIR NOVERRCHK |
---|
| 185 | DO ji = 1, jpi |
---|
[6498] | 186 | ztkel = tsn(ji,jj,jk,jp_tem) + 273.15 |
---|
[3443] | 187 | zsal = tsn(ji,jj,jk,jp_sal) + ( 1.- tmask(ji,jj,jk) ) * 35. |
---|
| 188 | zsal2 = zsal * zsal |
---|
| 189 | ztgg = LOG( ( 298.15 - tsn(ji,jj,jk,jp_tem) ) / ztkel ) ! Set the GORDON & GARCIA scaled temperature |
---|
| 190 | ztgg2 = ztgg * ztgg |
---|
| 191 | ztgg3 = ztgg2 * ztgg |
---|
| 192 | ztgg4 = ztgg3 * ztgg |
---|
| 193 | ztgg5 = ztgg4 * ztgg |
---|
| 194 | zoxy = ox0 + ox1 * ztgg + ox2 * ztgg2 + ox3 * ztgg3 + ox4 * ztgg4 + ox5 * ztgg5 & |
---|
| 195 | + zsal * ( ox6 + ox7 * ztgg + ox8 * ztgg2 + ox9 * ztgg3 ) + ox10 * zsal2 |
---|
| 196 | chemo2(ji,jj,jk) = ( EXP( zoxy ) * o2atm ) * oxyco * atcox ! mol/(L atm) |
---|
| 197 | END DO |
---|
| 198 | END DO |
---|
| 199 | END DO |
---|
| 200 | |
---|
| 201 | |
---|
| 202 | |
---|
| 203 | ! CHEMICAL CONSTANTS - DEEP OCEAN |
---|
| 204 | ! ------------------------------- |
---|
| 205 | !CDIR NOVERRCHK |
---|
| 206 | DO jk = 1, jpk |
---|
| 207 | !CDIR NOVERRCHK |
---|
| 208 | DO jj = 1, jpj |
---|
| 209 | !CDIR NOVERRCHK |
---|
| 210 | DO ji = 1, jpi |
---|
| 211 | |
---|
| 212 | ! SET PRESSION |
---|
| 213 | zpres = 1.025e-1 * fsdept(ji,jj,jk) |
---|
| 214 | |
---|
| 215 | ! SET ABSOLUTE TEMPERATURE |
---|
[6498] | 216 | ztkel = tsn(ji,jj,jk,jp_tem) + 273.15 |
---|
[3443] | 217 | zsal = tsn(ji,jj,jk,jp_sal) + ( 1.-tmask(ji,jj,jk) ) * 35. |
---|
| 218 | zsqrt = SQRT( zsal ) |
---|
| 219 | zsal15 = zsqrt * zsal |
---|
| 220 | zlogt = LOG( ztkel ) |
---|
| 221 | ztr = 1. / ztkel |
---|
| 222 | zis = 19.924 * zsal / ( 1000.- 1.005 * zsal ) |
---|
| 223 | zis2 = zis * zis |
---|
| 224 | zisqrt = SQRT( zis ) |
---|
| 225 | ztc = tsn(ji,jj,jk,jp_tem) + ( 1.- tmask(ji,jj,jk) ) * 20. |
---|
| 226 | |
---|
| 227 | ! CHLORINITY (WOOSTER ET AL., 1969) |
---|
| 228 | zcl = zsal * salchl |
---|
| 229 | |
---|
| 230 | ! TOTAL SULFATE CONCENTR. [MOLES/kg soln] |
---|
| 231 | zst = st1 * zcl * st2 |
---|
| 232 | |
---|
| 233 | ! TOTAL FLUORIDE CONCENTR. [MOLES/kg soln] |
---|
| 234 | zft = ft1 * zcl * ft2 |
---|
| 235 | |
---|
| 236 | ! DISSOCIATION CONSTANT FOR SULFATES on free H scale (Dickson 1990) |
---|
[6498] | 237 | zcks = EXP(-4276.1 * ztr + 141.328 - 23.093 * zlogt & |
---|
| 238 | & + (-13856. * ztr + 324.57 - 47.986 * zlogt) * zisqrt & |
---|
| 239 | & + (35474. * ztr - 771.54 + 114.723 * zlogt) * zis & |
---|
| 240 | & - 2698. * ztr * zis**1.5 + 1776.* ztr * zis2 & |
---|
| 241 | & + LOG(1.0 - 0.001005 * zsal)) |
---|
| 242 | ! |
---|
| 243 | aphscale(ji,jj,jk) = ( 1. + zst / zcks ) |
---|
[3443] | 244 | |
---|
| 245 | ! DISSOCIATION CONSTANT FOR FLUORIDES on free H scale (Dickson and Riley 79) |
---|
[6498] | 246 | zckf = EXP( 1590.2*ztr - 12.641 + 1.525*zisqrt & |
---|
| 247 | & + LOG(1.0d0 - 0.001005d0*zsal) & |
---|
| 248 | & + LOG(1.0d0 + zst/zcks)) |
---|
[3443] | 249 | |
---|
| 250 | ! DISSOCIATION CONSTANT FOR CARBONATE AND BORATE |
---|
[6498] | 251 | zckb= (-8966.90 - 2890.53*zsqrt - 77.942*zsal & |
---|
| 252 | & + 1.728*zsal15 - 0.0996*zsal*zsal)*ztr & |
---|
| 253 | & + (148.0248 + 137.1942*zsqrt + 1.62142*zsal) & |
---|
| 254 | & + (-24.4344 - 25.085*zsqrt - 0.2474*zsal) & |
---|
| 255 | & * zlogt + 0.053105*zsqrt*ztkel |
---|
[3443] | 256 | |
---|
[6498] | 257 | |
---|
[3443] | 258 | zck1 = c10 * ztr + c11 + c12 * zlogt + c13 * zsal + c14 * zsal * zsal |
---|
| 259 | zck2 = c20 * ztr + c21 + c22 * zsal + c23 * zsal**2 |
---|
| 260 | |
---|
| 261 | ! PKW (H2O) (DICKSON AND RILEY, 1979) |
---|
[6498] | 262 | zckw = -13847.26*ztr + 148.9652 - 23.6521 * zlogt & |
---|
| 263 | & + (118.67*ztr - 5.977 + 1.0495 * zlogt) & |
---|
| 264 | & * zsqrt - 0.01615 * zsal |
---|
[3443] | 265 | |
---|
| 266 | ! APPARENT SOLUBILITY PRODUCT K'SP OF CALCITE IN SEAWATER |
---|
| 267 | ! (S=27-43, T=2-25 DEG C) at pres =0 (atmos. pressure) (MUCCI 1983) |
---|
| 268 | zaksp0 = akcc1 + akcc2 * ztkel + akcc3 * ztr + akcc4 * LOG10( ztkel ) & |
---|
| 269 | & + ( akcc5 + akcc6 * ztkel + akcc7 * ztr ) * zsqrt + akcc8 * zsal + akcc9 * zsal15 |
---|
| 270 | |
---|
| 271 | ! K1, K2 OF CARBONIC ACID, KB OF BORIC ACID, KW (H2O) (LIT.?) |
---|
| 272 | zak1 = 10**(zck1) |
---|
| 273 | zak2 = 10**(zck2) |
---|
| 274 | zakb = EXP( zckb ) |
---|
| 275 | zakw = EXP( zckw ) |
---|
| 276 | zaksp1 = 10**(zaksp0) |
---|
| 277 | |
---|
| 278 | ! FORMULA FOR CPEXP AFTER EDMOND & GIESKES (1970) |
---|
| 279 | ! (REFERENCE TO CULBERSON & PYTKOQICZ (1968) AS MADE |
---|
| 280 | ! IN BROECKER ET AL. (1982) IS INCORRECT; HERE RGAS IS |
---|
| 281 | ! TAKEN TENFOLD TO CORRECT FOR THE NOTATION OF pres IN |
---|
| 282 | ! DBAR INSTEAD OF BAR AND THE EXPRESSION FOR CPEXP IS |
---|
| 283 | ! MULTIPLIED BY LN(10.) TO ALLOW USE OF EXP-FUNCTION |
---|
| 284 | ! WITH BASIS E IN THE FORMULA FOR AKSPP (CF. EDMOND |
---|
| 285 | ! & GIESKES (1970), P. 1285-1286 (THE SMALL |
---|
| 286 | ! FORMULA ON P. 1286 IS RIGHT AND CONSISTENT WITH THE |
---|
| 287 | ! SIGN IN PARTIAL MOLAR VOLUME CHANGE AS SHOWN ON P. 1285)) |
---|
| 288 | zcpexp = zpres /(rgas*ztkel) |
---|
| 289 | zcpexp2 = zpres * zpres/(rgas*ztkel) |
---|
| 290 | |
---|
| 291 | ! KB OF BORIC ACID, K1,K2 OF CARBONIC ACID PRESSURE |
---|
| 292 | ! CORRECTION AFTER CULBERSON AND PYTKOWICZ (1968) |
---|
| 293 | ! (CF. BROECKER ET AL., 1982) |
---|
| 294 | |
---|
[3557] | 295 | zbuf1 = - ( devk11 + devk21 * ztc + devk31 * ztc * ztc ) |
---|
| 296 | zbuf2 = 0.5 * ( devk41 + devk51 * ztc ) |
---|
[3443] | 297 | ak13(ji,jj,jk) = zak1 * EXP( zbuf1 * zcpexp + zbuf2 * zcpexp2 ) |
---|
| 298 | |
---|
[3557] | 299 | zbuf1 = - ( devk12 + devk22 * ztc + devk32 * ztc * ztc ) |
---|
| 300 | zbuf2 = 0.5 * ( devk42 + devk52 * ztc ) |
---|
[3443] | 301 | ak23(ji,jj,jk) = zak2 * EXP( zbuf1 * zcpexp + zbuf2 * zcpexp2 ) |
---|
| 302 | |
---|
[3557] | 303 | zbuf1 = - ( devk13 + devk23 * ztc + devk33 * ztc * ztc ) |
---|
| 304 | zbuf2 = 0.5 * ( devk43 + devk53 * ztc ) |
---|
[3443] | 305 | akb3(ji,jj,jk) = zakb * EXP( zbuf1 * zcpexp + zbuf2 * zcpexp2 ) |
---|
| 306 | |
---|
[3557] | 307 | zbuf1 = - ( devk14 + devk24 * ztc + devk34 * ztc * ztc ) |
---|
| 308 | zbuf2 = 0.5 * ( devk44 + devk54 * ztc ) |
---|
[3443] | 309 | akw3(ji,jj,jk) = zakw * EXP( zbuf1 * zcpexp + zbuf2 * zcpexp2 ) |
---|
| 310 | |
---|
| 311 | |
---|
| 312 | ! APPARENT SOLUBILITY PRODUCT K'SP OF CALCITE |
---|
| 313 | ! AS FUNCTION OF PRESSURE FOLLOWING MILLERO |
---|
| 314 | ! (P. 1285) AND BERNER (1976) |
---|
[3557] | 315 | zbuf1 = - ( devk15 + devk25 * ztc + devk35 * ztc * ztc ) |
---|
| 316 | zbuf2 = 0.5 * ( devk45 + devk55 * ztc ) |
---|
[3443] | 317 | aksp(ji,jj,jk) = zaksp1 * EXP( zbuf1 * zcpexp + zbuf2 * zcpexp2 ) |
---|
| 318 | |
---|
| 319 | ! TOTAL BORATE CONCENTR. [MOLES/L] |
---|
| 320 | borat(ji,jj,jk) = bor1 * zcl * bor2 |
---|
| 321 | |
---|
| 322 | ! Iron and SIO3 saturation concentration from ... |
---|
| 323 | sio3eq(ji,jj,jk) = EXP( LOG( 10.) * ( 6.44 - 968. / ztkel ) ) * 1.e-6 |
---|
| 324 | fekeq (ji,jj,jk) = 10**( 17.27 - 1565.7 / ( 273.15 + ztc ) ) |
---|
| 325 | |
---|
| 326 | END DO |
---|
| 327 | END DO |
---|
| 328 | END DO |
---|
| 329 | ! |
---|
| 330 | IF( nn_timing == 1 ) CALL timing_stop('p4z_che') |
---|
| 331 | ! |
---|
| 332 | END SUBROUTINE p4z_che |
---|
| 333 | |
---|
| 334 | |
---|
| 335 | INTEGER FUNCTION p4z_che_alloc() |
---|
| 336 | !!---------------------------------------------------------------------- |
---|
| 337 | !! *** ROUTINE p4z_che_alloc *** |
---|
| 338 | !!---------------------------------------------------------------------- |
---|
[6498] | 339 | ALLOCATE( sio3eq(jpi,jpj,jpk), fekeq(jpi,jpj,jpk), chemc(jpi,jpj), chemo2(jpi,jpj,jpk), & |
---|
| 340 | & STAT=p4z_che_alloc ) |
---|
[3443] | 341 | ! |
---|
| 342 | IF( p4z_che_alloc /= 0 ) CALL ctl_warn('p4z_che_alloc : failed to allocate arrays.') |
---|
| 343 | ! |
---|
| 344 | END FUNCTION p4z_che_alloc |
---|
| 345 | |
---|
| 346 | #else |
---|
| 347 | !!====================================================================== |
---|
| 348 | !! Dummy module : No PISCES bio-model |
---|
| 349 | !!====================================================================== |
---|
| 350 | CONTAINS |
---|
| 351 | SUBROUTINE p4z_che( kt ) ! Empty routine |
---|
| 352 | INTEGER, INTENT(in) :: kt |
---|
| 353 | WRITE(*,*) 'p4z_che: You should not have seen this print! error?', kt |
---|
| 354 | END SUBROUTINE p4z_che |
---|
| 355 | #endif |
---|
| 356 | |
---|
| 357 | !!====================================================================== |
---|
[6487] | 358 | END MODULE p4zche |
---|