File indexing completed on 2024-05-23 05:10:19 UTC
view on githubraw file Latest commit 82e538d8 on 2024-05-22 17:46:03 UTC
c0d1c06c15 Matt*0001 #include "BLING_OPTIONS.h"
041f4605e9 Jean*0002 #ifdef ALLOW_EXF
0003 # include "EXF_OPTIONS.h"
0004 #endif
c0d1c06c15 Matt*0005
0006
be72e7ae9e Jean*0007 SUBROUTINE BLING_READPARMS( myThid )
c0d1c06c15 Matt*0008
be72e7ae9e Jean*0009
c0d1c06c15 Matt*0010
0011
be72e7ae9e Jean*0012
c0d1c06c15 Matt*0013
e0f9a7ba0b Matt*0014 IMPLICIT NONE
c0d1c06c15 Matt*0015
0016
0017 #include "SIZE.h"
0018 #include "EEPARAMS.h"
0019 #include "PARAMS.h"
e0f9a7ba0b Matt*0020 #ifdef ALLOW_EXF
041f4605e9 Jean*0021 # include "EXF_PARAM.h"
9f0da36f91 Jean*0022 # include "EXF_INTERP_SIZE.h"
0023 # include "EXF_INTERP_PARAM.h"
e0f9a7ba0b Matt*0024 #endif /* ALLOW_EXF */
c0d1c06c15 Matt*0025 #include "BLING_VARS.h"
0026
0027
0028
0029 INTEGER myThid
0030
0031
0032 #ifdef ALLOW_BLING
0033
0034
0035
530382a175 Jean*0036
c0d1c06c15 Matt*0037
0038 CHARACTER*(MAX_LEN_MBUF) msgBuf
530382a175 Jean*0039 INTEGER errCount
c0d1c06c15 Matt*0040 INTEGER iUnit
0041
0042
0043
e0f9a7ba0b Matt*0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064
0065
0066
0067
0068
0069
0070
0071
0072
0073
0074
c0d1c06c15 Matt*0075
0076
be72e7ae9e Jean*0077 NAMELIST /ABIOTIC_PARMS/
e0f9a7ba0b Matt*0078 & permil,
0079 & Pa2Atm,
0080 & epsln
0081 #ifdef CARBONCHEM_SOLVESAPHE
0082 & ,selectBTconst,selectFTconst,
0083 & selectHFconst,selectK1K2const,
0084 & selectPHsolver
0085 #endif
c0d1c06c15 Matt*0086
0087
0088
0089
0090
0091 NAMELIST /BIOTIC_PARMS/
0092 & CtoN,
e0f9a7ba0b Matt*0093 & CtoP,
0094 & NtoP,
c0d1c06c15 Matt*0095 & HtoC,
e0f9a7ba0b Matt*0096 & NO3toN,
c0d1c06c15 Matt*0097 & O2toN,
e0f9a7ba0b Matt*0098 & O2toP,
c0d1c06c15 Matt*0099 & CatoN,
e0f9a7ba0b Matt*0100 & CatoP,
c0d1c06c15 Matt*0101 & masstoN,
e0f9a7ba0b Matt*0102 #ifndef USE_BLING_V1
0103 & Pc_0_diaz,
c0d1c06c15 Matt*0104 & alpha_photo,
e0f9a7ba0b Matt*0105 & gamma_DON,
0106 & k_Fe_diaz,
0107 & k_NO3,
0108 & k_PtoN,
0109 & k_FetoN,
0110 & PtoN_min,
0111 & PtoN_max,
0112 & FetoN_min,
0113 & FetoN_max,
0114 & kappa_eppley_diaz,
0115 & phi_dvm,
0116 & sigma_dvm,
0117 #ifdef USE_SIBLING
0118 & k_Si,
0119 & gamma_Si_0,
0120 & kappa_remin_Si,
0121 & wsink_Si,
00fa2d4ddd mmaz*0122 & SitoN_uptake_min,
0123 & SitoN_uptake_max,
0124 & SitoN_uptake_scale,
0125 & SitoN_uptake_exp,
e0f9a7ba0b Matt*0126 & q_SitoN_diss,
0127 #endif
0128 #else
0129 & alpha_max,
0130 & alpha_min,
0131 & gamma_biomass,
0132 & k_FetoP,
0133 & FetoP_max,
0134 & Fe_lim_min,
0135 #endif
0136 & pivotal,
0137 & Pc_0,
0138 & lambda_0,
0139 & resp_frac,
0140 & chl_min,
c0d1c06c15 Matt*0141 & theta_Fe_max_hi,
0142 & theta_Fe_max_lo,
0143 & gamma_irr_mem,
0144 & gamma_DOP,
0145 & gamma_POM,
0146 & k_Fe,
0147 & k_O2,
0148 & k_PO4,
0149 & kFe_eq_lig_max,
0150 & kFe_eq_lig_min,
0151 & kFe_eq_lig_Femin,
be72e7ae9e Jean*0152 & kFe_eq_lig_irr,
c0d1c06c15 Matt*0153 & kFe_org,
0154 & kFe_inorg,
0155 & FetoC_sed,
0156 & remin_min,
0157 & oxic_min,
0158 & ligand,
0159 & kappa_eppley,
0160 & kappa_remin,
0161 & ca_remin_depth,
0162 & phi_DOM,
0163 & phi_sm,
0164 & phi_lg,
0165 & wsink0z,
0166 & wsink0,
0167 & wsinkacc,
0168 & parfrac,
0169 & alpfe,
0170 & k0,
e0f9a7ba0b Matt*0171 & MLmix_max,
82e538d851 aver*0172 & chlsat_locTimWindow,
e0f9a7ba0b Matt*0173 & river_conc_po4,
0174 & river_dom_to_nut
c0d1c06c15 Matt*0175
0176
0177
0178
0179
0180 NAMELIST /BLING_FORCING/
0181 & bling_windFile, bling_atmospFile, bling_iceFile,
54b6d6aa91 Matt*0182 & bling_ironFile, bling_silicaFile,
0183 & bling_psmFile, bling_plgFile, bling_PdiazFile,
c0d1c06c15 Matt*0184 & bling_forcingPeriod, bling_forcingCycle,
47de7c1e0e Matt*0185 & bling_Pc_2dFile, bling_Pc_2d_diazFile,
af8f3b9ffc Matt*0186 & bling_alpha_photo2dFile,bling_phi_DOM2dFile,
0187 & bling_k_Fe2dFile, bling_k_Fe_diaz2dFile,
0188 & bling_gamma_POM2dFile, bling_wsink0_2dFile,
e0f9a7ba0b Matt*0189 & bling_phi_sm2dFile,bling_phi_lg2dFile,
0190 & bling_pCO2,
0191 & river_conc_po4, river_dom_to_nut
0192 #ifdef ALLOW_EXF
0193 & ,apco2file, apco2startdate1, apco2startdate2,
041f4605e9 Jean*0194 & apco2RepCycle, apco2period, apco2StartTime,
530382a175 Jean*0195 & exf_inscal_apco2, exf_outscal_apco2, apco2const,
079948e6a6 Matt*0196 & apco2_exfremo_intercept, apco2_exfremo_slope
0197 #ifdef USE_EXF_INTERPOLATION
e0f9a7ba0b Matt*0198 & ,apco2_lon0, apco2_lon_inc, apco2_lat0, apco2_lat_inc,
079948e6a6 Matt*0199 & apco2_nlon, apco2_nlat, apco2_interpMethod
0200 #endif /* USE_EXF_INTERPOLATION */
e0f9a7ba0b Matt*0201 #endif /* ALLOW_EXF */
c0d1c06c15 Matt*0202
0203
e0f9a7ba0b Matt*0204
0205
0206
0207
cab777d667 Matt*0208
e0f9a7ba0b Matt*0209
0210
0211
0212
0213
0214
0215
0216
0217
0218
0219
0220
0221
cab777d667 Matt*0222
0223
e0f9a7ba0b Matt*0224
0225
0226
0227
0228
0229
0230
0231
0232
0233
0234
0235
0236
0237
0238
0239
0240
0241
0242
0243
0244
0245
0246
0247
0248
0249
0250
0251
0252
0253
0254
0255
0256
0257
0258
0259
0260
00fa2d4ddd mmaz*0261
0262
0263
0264
e0f9a7ba0b Matt*0265
0266
0267
0268
cab777d667 Matt*0269
e0f9a7ba0b Matt*0270
0271
0272
0273
0274
cab777d667 Matt*0275
0276
e0f9a7ba0b Matt*0277
0278
0279
0280
0281
0282
0283
0284
0285
0286
0287
0288
82e538d851 aver*0289
0290
e0f9a7ba0b Matt*0291
c0d1c06c15 Matt*0292 _RL secperday
e0f9a7ba0b Matt*0293 #ifdef ALLOW_EXF
0294 #ifdef USE_EXF_INTERPOLATION
079948e6a6 Matt*0295 INTEGER j
e0f9a7ba0b Matt*0296 #endif /* USE_EXF_INTERPOLATION */
0297 #endif /* ALLOW_EXF */
c0d1c06c15 Matt*0298
0299 _BEGIN_MASTER(myThid)
530382a175 Jean*0300 errCount = 0
c0d1c06c15 Matt*0301
0302
0303
0304
0305 secperday = 86400. _d 0
0306 permil = 1. _d 0 / 1024.5 _d 0
0307 Pa2Atm = 1.01325 _d 5
e0f9a7ba0b Matt*0308 epsln = 1. _d -30
0309 #ifdef CARBONCHEM_SOLVESAPHE
0310 selectBTconst = 1
0311 selectFTconst = 1
0312 selectHFconst = 1
0313 selectK1K2const = 1
0314 selectPHsolver = 0
0315 #endif
0316
c0d1c06c15 Matt*0317 CtoN = 6.75 _d 0
e0f9a7ba0b Matt*0318 CtoP = 106. _d 0
0319 NtoP = 16. _d 0
c0d1c06c15 Matt*0320 HtoC = 48. _d 0 / 106. _d 0
be72e7ae9e Jean*0321 NO3toN = CtoN * (1. _d 0 + 0.25 _d 0 * HtoC)
c0d1c06c15 Matt*0322 & * 0.8 _d 0 + 0.6 _d 0
e0f9a7ba0b Matt*0323 O2toN = CtoN * (1. _d 0 + 0.25 _d 0 * HtoC)
0324 & + 2. _d 0
0325 O2toP = 150. _d 0
c0d1c06c15 Matt*0326 CatoN = CtoN * 0.015 _d 0
e0f9a7ba0b Matt*0327 CatoP = 106.0 _d 0 * 0.015 _d 0
c0d1c06c15 Matt*0328 masstoN = CtoN * 12.001 _d 0
e0f9a7ba0b Matt*0329 #ifndef USE_BLING_V1
c0d1c06c15 Matt*0330 pivotal = 1.9 _d -3 / 1028. _d 0 / CtoN / permil
0331 Pc_0 = 1.7 _d -5
0332 Pc_0_diaz = 0.01 _d -5
be72e7ae9e Jean*0333 alpha_photo = 0.7 _d -5 * 2.77 _d 18 / 6.022 _d 17
c0d1c06c15 Matt*0334 gamma_DON = 0.25 _d 0 / (365.25 _d 0 * secperday)
0335 gamma_DOP = 0.5 _d 0 / (365.25 _d 0 * secperday)
e0f9a7ba0b Matt*0336 PtoN_min = 1. / 28.
0337 PtoN_max = 1. / 9.
0338 FetoN_min = 2. _d -6 * 6.75
0339 FetoN_max = 25. _d -6 * 6.75
cab777d667 Matt*0340 k_Fe = 1.6 _d -10 / permil
c0d1c06c15 Matt*0341 k_Fe_diaz = 7. _d -10 / permil
0342 k_NO3 = 2. _d -6 / permil
cab777d667 Matt*0343 k_PO4 = 1. _d -8 / permil
be72e7ae9e Jean*0344 k_PtoN = 1.5 _d -6 / permil
0345 k_FetoN = 8. _d -10 / permil
e0f9a7ba0b Matt*0346 remin_min = 0.15 _d 0
0347 kappa_eppley_diaz = 0.18 _d 0
0348 sigma_dvm = 40.0 _d 0
0349 phi_dvm = 0.2 _d 0
0350 #ifdef USE_SIBLING
0351 k_Si = 2.0 _d -6 / permil
0352 gamma_Si_0 = 0.05 / secperday
0353 kappa_remin_Si = 0.075
0354 wsink_Si = 100. / secperday
6ffd1aa797 Jean*0355 SitoN_uptake_min = 4
0356 SitoN_uptake_max = 1
00fa2d4ddd mmaz*0357 SitoN_uptake_scale = 0.6
0358 SitoN_uptake_exp = 3.887
e0f9a7ba0b Matt*0359 q_SitoN_diss = 1.0 _d 0
0360 #endif
0361 #else
0362 pivotal = 1.9 _d -3 / 1028. _d 0 / CtoP / permil
0363 Pc_0 = 1 _d -5
0364 alpha_max = 1.6 _d -5 * 2.77 _d 18 / 6.022 _d 17
0365 alpha_min = 0.4 _d -5 * 2.77 _d 18 / 6.022 _d 17
0366 gamma_biomass = 0.5 _d 0 / secperday
0367 gamma_DOP = 0.25 _d 0 / (365.25 _d 0 * secperday)
0368 k_Fe = 8. _d -10 / permil
0369 k_PO4 = 1. _d -7 / permil
0370 k_FetoP = 7. _d -6 * CtoP
0371 FetoP_max = 28. _d -6 * CtoP
0372 Fe_lim_min = 0. _d 0
0373 remin_min = 0.3 _d 0
0374 #endif
0375 lambda_0 = 0.19 _d 0 / secperday
0376 resp_frac = 0. _d 0
0377 chl_min = 1. _d -5
0378 theta_Fe_max_hi = 0.04 _d 0
0379 theta_Fe_max_lo = 0.01 _d 0
0380 gamma_irr_mem = 1. _d 0 / secperday
0381 gamma_POM = 0.12 _d 0 / secperday
0382 k_O2 = 20. _d -6 / permil
c0d1c06c15 Matt*0383 kFe_eq_lig_max = 8.0 _d 10 * permil
0384 kFe_eq_lig_min = 8.0 _d 9 * permil
0385 kFe_eq_lig_Femin = 0.05 _d -9 / permil
0386 kFe_eq_lig_irr = 0.1 _d 0
0387 kFe_org = 0.5 _d 0 / secperday * permil**(0.58)
0388 kFe_inorg = 1. _d 3 / secperday * permil**(0.5)
e0f9a7ba0b Matt*0389 FetoC_sed = 1. _d -4
c0d1c06c15 Matt*0390 oxic_min = 1. _d -6 / permil
0391 Ligand = 1. _d -9 / permil
0392 kappa_eppley = 0.063 _d 0
be72e7ae9e Jean*0393 kappa_remin = -0.032 _d 0
c0d1c06c15 Matt*0394 ca_remin_depth = 1343. _d 0
0395 phi_DOM = 0.1 _d 0
0396 phi_sm = 0.18 _d 0
0397 phi_lg = 1. _d 0
0398 wsink0 = 16. _d 0 / secperday
e0f9a7ba0b Matt*0399 wsink0z = 80. _d 0
c0d1c06c15 Matt*0400 wsinkacc = 0.05 _d 0 / secperday
0401 parfrac = 0.4 _d 0
0402 alpfe = 0.01 _d 0
0403 k0 = 0.04 _d 0
e0f9a7ba0b Matt*0404 MLmix_max = 200.0 _d 0
82e538d851 aver*0405 chlsat_locTimWindow(1) = 12.0 _d 0
0406 chlsat_locTimWindow(2) = 13.5 _d 0
e0f9a7ba0b Matt*0407
0408 bling_windFile = ' '
0409 bling_atmospFile = ' '
0410 bling_iceFile = ' '
0411 bling_ironFile = ' '
0412 bling_silicaFile = ' '
0413 bling_psmFile = ' '
0414 bling_plgFile = ' '
0415 bling_pdiazFile = ' '
47de7c1e0e Matt*0416 bling_Pc_2dFile = ' '
0417 bling_Pc_2d_diazFile = ' '
0418 bling_alpha_photo2dFile= ' '
0419 bling_k_Fe2dFile = ' '
0420 bling_k_Fe_diaz2dFile = ' '
af8f3b9ffc Matt*0421 bling_gamma_POM2dFile = ' '
0422 bling_wsink0_2dFile = ' '
0423 bling_phi_DOM2dFile = ' '
0424 bling_phi_sm2dFile = ' '
0425 bling_phi_lg2dFile = ' '
c0d1c06c15 Matt*0426
e0f9a7ba0b Matt*0427 bling_pCO2 = 278. _d -6
0428 river_conc_po4 = 0.007 _d 0
0429 river_dom_to_nut = 0. _d 0
0430
0431 #ifdef ALLOW_EXF
0432 apco2startdate1 = 0
0433 apco2startdate2 = 0
0434 apco2StartTime = UNSET_RL
0435 apco2period = 0.0 _d 0
0436 apco2RepCycle = repeatPeriod
0437 apco2const = 0.0 _d 0
079948e6a6 Matt*0438 apco2_exfremo_intercept = 0.0 _d 0
e0f9a7ba0b Matt*0439 apco2_exfremo_slope = 0.0 _d 0
0440 apco2file = ' '
0441 exf_inscal_apco2 = 1. _d 0
0442 exf_outscal_apco2 = 1. _d 0
079948e6a6 Matt*0443 #ifdef USE_EXF_INTERPOLATION
530382a175 Jean*0444
079948e6a6 Matt*0445
e0f9a7ba0b Matt*0446 apco2_lon0 = inp_lon0
0447 apco2_lat0 = inp_lat0
9f0da36f91 Jean*0448 apco2_nlon = inp_gNx
0449 apco2_nlat = inp_gNy
e0f9a7ba0b Matt*0450 apco2_lon_inc = inp_dLon
079948e6a6 Matt*0451 DO j=1,MAX_LAT_INC
9f0da36f91 Jean*0452 apco2_lat_inc(j) = inp_dLat(j)
079948e6a6 Matt*0453 ENDDO
8125504ce6 Matt*0454 apco2_interpMethod = 1
079948e6a6 Matt*0455 #endif /* USE_EXF_INTERPOLATION */
e0f9a7ba0b Matt*0456 #endif /* ALLOW_EXF */
c0d1c06c15 Matt*0457
be72e7ae9e Jean*0458
e0f9a7ba0b Matt*0459 bling_forcingPeriod = externForcingPeriod
0460 bling_forcingCycle = externForcingCycle
c0d1c06c15 Matt*0461
0462 WRITE(msgBuf,'(A)') ' BLING_READPARMS: opening data.bling'
0463 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
0464 I SQUEEZE_RIGHT, myThid )
0465
0466 CALL OPEN_COPY_DATA_FILE( 'data.bling', 'BLING_READPARMS',
0467 O iUnit, myThid )
0468
0469
0470
0471
0472 READ(UNIT=iUnit,NML=ABIOTIC_PARMS)
0473
0474
0475 READ(UNIT=iUnit,NML=BIOTIC_PARMS)
0476
0477
0478 READ(UNIT=iUnit,NML=BLING_FORCING)
0479
0480 WRITE(msgBuf,'(A)')
0481 & ' BLING_READPARMS: finished reading data.BLING'
0482 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
0483 I SQUEEZE_RIGHT, myThid )
0484
0485
7a77863887 Mart*0486 #ifdef SINGLE_DISK_IO
c0d1c06c15 Matt*0487 CLOSE(iUnit)
7a77863887 Mart*0488 #else
0489 CLOSE(iUnit,STATUS='DELETE')
0490 #endif /* SINGLE_DISK_IO */
c0d1c06c15 Matt*0491
e0f9a7ba0b Matt*0492 iUnit = standardMessageUnit
0493
0494 #ifdef CARBONCHEM_SOLVESAPHE
0495 IF ( selectPHsolver.GT.0 ) THEN
0496 WRITE(msgBuf,'(A)')
0497 & 'Using Munhoven (2013) Solvesaphe for pH/pCO2'
0498 CALL PRINT_MESSAGE(msgBuf,iUnit,SQUEEZE_RIGHT,myThid)
0499 ELSEIF ( selectPHsolver.EQ.0 ) THEN
0500 WRITE(msgBuf,'(A)')
0501 & 'Using Follows et al. (2006) for pH/pCO2'
0502 CALL PRINT_MESSAGE(msgBuf,iUnit,SQUEEZE_RIGHT,myThid)
0503 ENDIF
0504 #endif
c0d1c06c15 Matt*0505
e0f9a7ba0b Matt*0506
0507 #ifdef CARBONCHEM_SOLVESAPHE
0508 WRITE(msgBuf,'(A)')
0509 & 'Using Munhoven (2013) Solvesaphe carbon coefficients'
0510 CALL PRINT_MESSAGE(msgBuf,iUnit,SQUEEZE_RIGHT,myThid)
0511
0512 IF ( selectK1K2const.EQ.1 ) THEN
0513 WRITE(msgBuf,'(A)')
0514 & 'Using Millero (1995)/Mehrbach K1 and K2 coefficients'
0515 CALL PRINT_MESSAGE(msgBuf,iUnit,SQUEEZE_RIGHT,myThid)
0516 ELSEIF ( selectK1K2const.EQ.2 ) THEN
0517 WRITE(msgBuf,'(A)')
0518 & 'Using Roy et al. (1993) K1 and K2 coefficients'
0519 CALL PRINT_MESSAGE(msgBuf,iUnit,SQUEEZE_RIGHT,myThid)
0520 ELSEIF ( selectK1K2const.EQ.3 ) THEN
0521 WRITE(msgBuf,'(A)')
0522 & 'Using Millero (1995) "consensus" K1 and K2 coefficients'
0523 CALL PRINT_MESSAGE(msgBuf,iUnit,SQUEEZE_RIGHT,myThid)
0524 ELSEIF ( selectK1K2const.EQ.4 ) THEN
0525 WRITE(msgBuf,'(A)')
0526 & 'Using Luecker et al. (2000) K1 and K2 coefficients'
0527 CALL PRINT_MESSAGE(msgBuf,iUnit,SQUEEZE_RIGHT,myThid)
0528 ELSEIF ( selectK1K2const.EQ.5 ) THEN
0529 WRITE(msgBuf,'(A)')
0530 & 'Using Millero et al. (2010) K1 and K2 coefficients'
0531 CALL PRINT_MESSAGE(msgBuf,iUnit,SQUEEZE_RIGHT,myThid)
0532 ELSEIF ( selectK1K2const.EQ.6 ) THEN
0533 WRITE(msgBuf,'(A)')
0534 & 'Using Waters et al. (2014) K1 and K2 coefficients'
0535 CALL PRINT_MESSAGE(msgBuf,iUnit,SQUEEZE_RIGHT,myThid)
0536 ENDIF
0537 IF ( selectHFconst.EQ.1 ) THEN
0538 WRITE(msgBuf,'(A)')
0539 & 'Using Dickson and Riley (1979) KF coefficient'
0540 CALL PRINT_MESSAGE(msgBuf,iUnit,SQUEEZE_RIGHT,myThid)
0541 ELSEIF ( selectHFconst.EQ.2 ) THEN
0542 WRITE(msgBuf,'(A)')
0543 & 'Using Perez and Fraga (1987) KF coefficient'
0544 CALL PRINT_MESSAGE(msgBuf,iUnit,SQUEEZE_RIGHT,myThid)
0545 ENDIF
0546 IF ( selectBTconst.EQ.1 ) THEN
0547 WRITE(msgBuf,'(A)')
0548 & 'Using Uppstrom (1974) BT estimation from salinity'
0549 CALL PRINT_MESSAGE(msgBuf,iUnit,SQUEEZE_RIGHT,myThid)
0550 ELSEIF ( selectBTconst.EQ.2 ) THEN
0551 WRITE(msgBuf,'(A)')
0552 & 'Using Lee et al (2010) BT estimation from salinity'
0553 CALL PRINT_MESSAGE(msgBuf,iUnit,SQUEEZE_RIGHT,myThid)
0554 ENDIF
0555 IF ( selectFTconst.EQ.1 ) THEN
0556 WRITE(msgBuf,'(A)')
0557 & 'Using Riley (1965) FT estimation from salinity'
0558 CALL PRINT_MESSAGE(msgBuf,iUnit,SQUEEZE_RIGHT,myThid)
0559 ELSEIF ( selectBTconst.EQ.2 ) THEN
0560 WRITE(msgBuf,'(A)')
0561 & 'Using Culkin (1965) FT estimation from salinity'
0562 CALL PRINT_MESSAGE(msgBuf,iUnit,SQUEEZE_RIGHT,myThid)
0563 ENDIF
0564 #else
0565
0566 WRITE(msgBuf,'(A)')
0567 & 'Using Millero (1995)/Mehrbach K1 and K2 coefficients'
0568 CALL PRINT_MESSAGE(msgBuf,iUnit,SQUEEZE_RIGHT,myThid)
0569 WRITE(msgBuf,'(A)')
0570 & 'Using Dickson and Riley (1979) KF coefficient'
0571 CALL PRINT_MESSAGE(msgBuf,iUnit,SQUEEZE_RIGHT,myThid)
0572 WRITE(msgBuf,'(A)')
0573 & 'Using Uppstrom (1974) BT estimation from salinity'
0574 CALL PRINT_MESSAGE(msgBuf,iUnit,SQUEEZE_RIGHT,myThid)
0575 WRITE(msgBuf,'(A)')
0576 & 'Using Riley (1965) FT estimation from salinity'
0577 CALL PRINT_MESSAGE(msgBuf,iUnit,SQUEEZE_RIGHT,myThid)
c0d1c06c15 Matt*0578 #endif
0579
530382a175 Jean*0580 IF ( errCount.GE.1 ) THEN
0581 WRITE(msgBuf,'(A,I3,A)')
0582 & 'BLING_READPARMS: detected', errCount,' fatal error(s)'
0583 CALL PRINT_ERROR( msgBuf, myThid )
0584 CALL ALL_PROC_DIE( 0 )
0585 STOP 'ABNORMAL END: S/R BLING_READPARMS'
0586 ENDIF
0587
e0f9a7ba0b Matt*0588 #ifdef CARBONCHEM_SOLVESAPHE
0589 IF ( selectHFconst.GT.2 .OR. selectBTconst.GT.2
0590 & .OR. selectFTconst.GT.2 ) THEN
0591 WRITE(msgBuf,'(A)')
0592 & 'BLING_READPARMS: selectHF, selectBT or selectFT > 2'
0593 CALL PRINT_ERROR( msgBuf, myThid )
0594 STOP 'ABNORMAL END: S/R BLING_READPARMS: solvesaphe_const error'
0595 ELSEIF ( selectK1K2const.GT.6 ) THEN
0596 WRITE(msgBuf,'(A)')
0597 & 'BLING_READPARMS: selectK1K2const > 6 '
0598 CALL PRINT_ERROR( msgBuf, myThid )
0599 STOP 'ABNORMAL END: S/R BLING_READPARMS: solvesaphe_const error'
0600 ELSEIF ( selectPHsolver.GT.3 ) THEN
0601 WRITE(msgBuf,'(A)')
0602 & 'BLING_READPARMS: selectPHsolver > 3 '
0603 CALL PRINT_ERROR( msgBuf, myThid )
0604 STOP 'ABNORMAL END: S/R BLING_READPARMS: select pH solver error'
0605 ENDIF
0606 #endif
0607
c0d1c06c15 Matt*0608 _END_MASTER(myThid)
0609
0610
0611 _BARRIER
0612
0613 #endif /* ALLOW_BLING */
0614
0615 RETURN
0616 END