-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathmo_param_bgc.F90
1211 lines (1100 loc) · 68.3 KB
/
mo_param_bgc.F90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
! Copyright (C) 2001 Ernst Maier-Reimer, S. Legutke
! Copyright (C) 2020 K. Assmann, J. Tjiputra, J. Schwinger, I. Kriest,
! A. Moree, C. Heinze
!
! This file is part of BLOM/iHAMOCC.
!
! BLOM is free software: you can redistribute it and/or modify it under the
! terms of the GNU Lesser General Public License as published by the Free
! Software Foundation, either version 3 of the License, or (at your option)
! any later version.
!
! BLOM is distributed in the hope that it will be useful, but WITHOUT ANY
! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
! FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
! more details.
!
! You should have received a copy of the GNU Lesser General Public License
! along with BLOM. If not, see https://www.gnu.org/licenses/.
module mo_param_bgc
!*************************************************************************************************
! BELEG_PARM - now mo_param_bgc - initialize bgc parameters.
!
! Ernst Maier-Reimer, *MPI-Met, HH* 10.04.01
!
! Modified
! J.Schwinger, *NORCE Climate, Bergen* 2020-05-19
! - split the original BELEG_BGC in two parts, BELEG_PARM and BELEG_VARS
! jmaerz
! - rename beleg_parm to mo_param_bgc
!*************************************************************************************************
use mo_carbch, only: atm_co2
use mo_control_bgc, only: io_stdo_bgc,bgc_namelist,use_AGG,use_natDIC, &
use_BROMO,use_cisonew,use_WLIN,use_FB_BGC_OCE, &
do_ndep,do_oalk,do_rivinpt,do_sedspinup,l_3Dvarsedpor, &
use_BOXATM,use_CFC,use_PBGC_CK_TIMESTEP, &
use_sedbypass,with_dmsph,use_PBGC_OCNP_TIMESTEP,ocn_co2_type,use_M4AGO,&
do_n2onh3_coupled,use_extNcycle, &
lkwrbioz_off,lTO2depremin,use_shelfsea_res_time,use_sediment_quality, &
use_pref_tracers,use_coupler_ndep
use mod_xc, only: mnproc
implicit none
private
! For writing parameters to netcdf file
integer, parameter,public :: nlength = 30
type,public :: pinfo
character(len=nlength) :: pname
real :: pvalue
end type
integer, protected, public :: nentries = 0
type(pinfo), allocatable, protected, public :: param4nc(:)
type, public :: ctrinfo
character(len=nlength) :: cname
integer :: cvalue
end type
integer, protected, public :: centries = 0
type(ctrinfo), allocatable, protected, public :: controls4nc(:)
! Routines
public :: ini_parambgc
private :: ini_aggregation
private :: read_bgcnamelist
private :: calc_param_atm
private :: calc_param_biol
private :: rates_2_timestep
! Module variables set by bgcparams namelist
public :: wpoc_const,wcal_const,wopal_const,wdust_const
public :: bkopal,bkphy,bluefix,bkzoo
public :: drempoc,dremopal,dremn2o,dremsul
public :: drempoc_anaerob,bkox_drempoc
public :: grazra,gammap,gammaz,spemor
public :: ecan,epsher,fetune
public :: relaxfe,rcalc,ropal
public :: wmin,wmax,wlin,zinges
! Other module variables
public :: ro2ut,rcar,rnit,rnoi,riron,rdnit0,rdnit1,rdnit2,rdn2o1,rdn2o2
public :: atm_n2,atm_o2,atm_co2_nat,atm_bromo,re1312,atm_n2o,atm_nh3
public :: srfdic_min,re14to,prei13,prei14,ctochl
public :: atten_w,atten_c,atten_uv,atten_f
public :: perc_diron,fesoly,phytomi,pi_alpha
public :: dyphy,tf2,tf1,tf0,tff,bifr13_ini,bifr14_ini,c14_t_half
public :: rbro,fbro1,fbro2,grami
public :: calmax,remido
public :: dustd1,dustd2,dustd3,dustsink
public :: SinkExp, FractDim, Stick, cellmass, cellsink
public :: fsh,fse,alow1, alow2,alow3
public :: alar1,alar2,alar3,TSFac,TMFac
public :: vsmall,safe,pupper,plower,zdis,nmldmin
public :: beta13,alpha14,atm_c13,atm_c14,c14fac,c14dec
public :: sedict,silsat,disso_poc,disso_sil,disso_caco3
public :: sed_denit,sed_sulf,calcwei,opalwei,orgwei
public :: calcdens,opaldens,orgdens,claydens
public :: dmsp1,dmsp2,dmsp3,dmsp4,dmsp5,dmsp6,dms_gamma
public :: POM_remin_q10,opal_remin_q10,POM_remin_Tref,opal_remin_Tref
public :: O2thresh_aerob,O2thresh_hypoxic,NO3thresh_sulf
public :: sed_O2thresh_sulf,sed_O2thresh_hypoxic,sed_NO3thresh_sulf
public :: shelfbreak_depth
public :: sed_alpha_poc,sed_qual_sc
! extended nitrogen cycle
public :: q10ano3denit,sc_ano3denit,Trefano3denit,rano3denit,bkano3denit, &
& rano2anmx,q10anmx,Trefanmx,alphaanmx,bkoxanmx,bkano2anmx,bkanh4anmx, &
& rano2denit,q10ano2denit,Trefano2denit,bkoxano2denit,bkano2denit, &
& ran2odenit,q10an2odenit,Trefan2odenit,bkoxan2odenit,bkan2odenit, &
& rdnra,q10dnra,Trefdnra,bkoxdnra,bkdnra,ranh4nitr,q10anh4nitr, &
& Trefanh4nitr,bkoxamox,bkanh4nitr,bkamoxn2o,bkyamox, &
& rano2nitr,q10ano2nitr,Trefano2nitr,bkoxnitr,bkano2nitr,n2omaxy, &
& n2oybeta,NOB2AOAy,bn2o,mufn2o, &
& rc2n,ro2nnit,rnoxp,rnoxpi,rno2anmx,rno2anmxi,rnh4anmx, &
& rnh4anmxi,rno2dnra,rno2dnrai,rnh4dnra,rnh4dnrai,rnm1, &
& bkphyanh4,bkphyano3,bkphosph,bkiron,ro2utammo, &
& q10ano3denit_sed,sc_ano3denit_sed,Trefano3denit_sed,rano3denit_sed, &
& bkano3denit_sed,rano2anmx_sed,q10anmx_sed,Trefanmx_sed,alphaanmx_sed,&
& bkoxanmx_sed,bkano2anmx_sed,bkanh4anmx_sed,rano2denit_sed, &
& q10ano2denit_sed,Trefano2denit_sed,bkoxano2denit_sed,bkano2denit_sed,&
& ran2odenit_sed,q10an2odenit_sed,Trefan2odenit_sed,bkoxan2odenit_sed, &
& bkan2odenit_sed,rdnra_sed,q10dnra_sed,Trefdnra_sed,bkoxdnra_sed, &
& bkdnra_sed,ranh4nitr_sed,q10anh4nitr_sed,Trefanh4nitr_sed, &
& bkoxamox_sed,bkanh4nitr_sed,bkamoxn2o_sed,bkyamox_sed, &
& rano2nitr_sed,q10ano2nitr_sed,Trefano2nitr_sed,bkoxnitr_sed, &
& bkano2nitr_sed,n2omaxy_sed,n2oybeta_sed,NOB2AOAy_sed,bn2o_sed, &
& mufn2o_sed,POM_remin_q10_sed, POM_remin_Tref_sed,bkox_drempoc_sed, &
& max_limiter
!********************************************************************
! Stoichiometry and fixed parameters
!********************************************************************
! extended redfield ratio declaration
! Note: stoichiometric ratios are based on Takahashi etal. (1985)
! P:N:C:-O2 + 1:16:122:172
real, parameter :: ro2ut = 172. ! Oxygen utilization
real, parameter :: rcar = 122. ! mol C per mol P
real, parameter :: rnit = 16. ! mol N per mol P
real, parameter :: rnoi = 1./rnit ! mol P per mol N
real, parameter :: riron = 5.*rcar*1.e-6 ! fe to P ratio in organic matter
! stoichiometric ratios for denitrification from Paulmier et al. 2009, Table 1 and
! equation 18. Note that their R_0=ro2ut-2*rnit.
real, parameter :: rdnit0 = 0.8*ro2ut ! moles nitrate lost for remineralisation of 1 mole P
real, parameter :: rdnit1 = 0.8*ro2ut - rnit ! moles nitrate net for remineralisation of 1 mole P
real, parameter :: rdnit2 = 0.4*ro2ut ! moles N2 released for remineralisation of 1 mole P
! stoichiometric ratios for N2O loss by "intermediate dinitrification". Note that there
! is no nitrate created by this process, organic N is released as N2
real, parameter :: rdn2o1 = 2*ro2ut - 2.5*rnit ! moles N2O used for remineralisation of 1 mole P
real, parameter :: rdn2o2 = 2*ro2ut - 2*rnit ! moles N2 released for remineralisation of 1 mole P
! Decay parameter for C14, HalfLive = 5700 years
real, parameter :: c14_t_half = 5700.*365. ! Half life of 14C [days]
! Minimum surface DIC concentration for gas-exchange parameterization
real, parameter :: srfdic_min = 1.0e-5 ! kmol C m-3
! Extended nitrogen cycle
real, parameter :: max_limiter = 0.9999 ! maximum in concentrations that can be consumed at once
real, parameter :: rc2n = rcar/rnit ! iHAMOCC C:N ratio
real, parameter :: ro2utammo = 140. ! Oxygen utilization per mol detritus during ammonification
real, parameter :: ro2nnit = ro2utammo/rnit !
real, parameter :: rnoxp = 280. ! consumption of NOx per mol detritus during denitrification
real, parameter :: rnoxpi = 1./rnoxp ! inverse
real, parameter :: rno2anmx = 1144. ! consumption of NO2 per mol organic production by anammox
real, parameter :: rno2anmxi = 1./rno2anmx ! inverse
real, parameter :: rnh4anmx = 880. ! consumption of NH4 per mol organic production by anammox
real, parameter :: rnh4anmxi = 1./rnh4anmx ! inverse
real, parameter :: rno2dnra = 93. + 1./3. ! consumption of NO2 per mol OM degradation during DNRA
real, parameter :: rno2dnrai = 1./rno2dnra ! inverse
real, parameter :: rnh4dnra = rno2dnra + rnit ! production of NH4 per mol OM during DNRA
real, parameter :: rnh4dnrai = 1./rnh4dnra ! inverse
real, parameter :: rnm1 = rnit - 1.
!********************************************************************
! Atmosphere:
!********************************************************************
real, protected :: atm_n2 = 802000. ! atmosphere dinitrogen concentration
real, protected :: atm_n2o = 300e3 ! atmosphere laughing gas mixing ratio around 1980: 300 ppb,provided in ppt,300ppb = 300e3ppt = 3e-7 mol/mol
real, protected :: atm_nh3 = 0. ! Six & Mikolajewicz 2022: less than 1nmol m-3
real, protected :: atm_o2 = 196800. ! atmosphere oxygen concentration
real, protected :: atm_co2_nat = 284.32 ! atmosphere CO2 concentration CMIP6 pre-industrial reference
real, protected :: atm_bromo = 3.4 ! atmosphere bromophorme concentration
! For now use 3.4ppt from Hense and Quack (2009; Biogeosciences) NEED TO
! BE UPDATED WITH Ziska et al. (2013) climatology database
! set standard carbon isotope ratios
real, protected :: re1312 = 0.0112372
real, protected :: re14to = 1.170e-12 ! Karlen et al. 1965 / Orr et al. 2017
! set preindustr. d13c and bigd14C in atmosphere
real, protected :: prei13 = -6.5
real, protected :: prei14 = 0.
real, protected :: c14fac ! factor for normalizing 14C tracers (~1e-12)
real, protected :: c14dec
! calculate atm_c13 and atm_c14
real, protected :: atm_c13
real, protected :: atm_c14 ! absolute 14c concentration in preindustrial atmosphere
!********************************************************************
! Water column biogeochemistry
!********************************************************************
! Initialize default biogeochemistry parameters
! Note that rates are initialized here in /d or equivalent and
! time step adjustment is done after reading the BGCPARAMS namelist
!********************************************************************
! SW-radiation and attenuation parameters
!********************************************************************
! Analog to Moore et al., Deep-Sea Research II 49 (2002), 403-462
! 1 kmolP = (122*12/60)*10^6 mg[Chlorophyl]
real, parameter :: ctochl = 60. ! C to Chlorophyl ratio
real, protected :: atten_w = 0.04 ! yellow substances attenuation in 1/m
real, protected :: atten_c = 0.03*rcar*(12./ctochl)*1.e6 ! phytoplankton attenuation in 1/m
real, protected :: atten_uv = 0.33
real, protected :: atten_f = 0.4 ! fraction of sw-radiation directly absorbed in surface layer
! (only if FB_BGC_OCE) [feedback bgc-ocean]
!********************************************************************
! Dust deposition and iron solubility parameters
!********************************************************************
!ik weight percent iron in dust deposition times Fe solubility
! the latter three values come from Johnson et al., 1997
real, protected :: fetune = 0.6 ! factor introduced to tune deposition/solubility
real, protected :: perc_diron
real, protected :: fesoly = 0.5*1.e-9 ! max. diss. iron concentration in deep water
real, protected :: relaxfe = 0.05/365. ! 1/d complexation rate to relax iron concentration to fesoly
!********************************************************************
! Phytoplankton parameters (incl. cyanobacteria)
!********************************************************************
real, protected :: phytomi = 1.e-11 ! kmol/m3 - i.e. 1e-5 mmol P/m3 minimum concentration of phyto plankton (?js)
real, protected :: pi_alpha = 0.02*0.4 ! initial slope of production vs irradiance curve (alpha) (0.002 for 10 steps per day)
real, protected :: bkphy = 4.e-8 ! kmol/m3 - i.e. 0.04 mmol P/m3 half saturation constant
real, protected :: dyphy = 0.004 ! 1/d -mortality rate of phytoplankton
! Initial fractionation during photosynthesis
real, protected :: bifr13_ini = 0.98
real, protected :: bifr14_ini
! N2-Fixation following the parameterization in Kriest and Oschlies, 2015.
! Factors tf2, tf1 and tf0 are a polynomial (2nd order)
! approximation to the functional relationship by Breitbarth et al. (2007),
! for temperature dependence of Trichodesmium growth, their eq. (2)
! The relation will be scaled to their max. growth rate, tff.
! Note that the second order approx. is basically similar to their
! function 2 for T-dependent nitrogen fixation multiplied by 4
! (2 [N atoms per mole] * 12 [light hrs per day]/6 [C-atoms per N-atoms])
real, protected :: bluefix = 0.005 ! 1/d ! nitrogen fixation rate by blue green algae (cyanobacteria)
real, protected :: tf2 = -0.0042
real, protected :: tf1 = 0.2253
real, protected :: tf0 = -2.7819
real, protected :: tff = 0.2395
!********************************************************************
! Zooplankton parameters
!********************************************************************
real, protected :: grami = 1.e-10 ! kmol/m3 - i.e. 1e-5 mmol P/m3 minimum concentration of zooplankton
real, protected :: bkzoo = 8.e-8 ! kmol/m3 - i.e. 0.08 mmol P/m3 half saturation constant
!ik addded parameter definition; taken from OCPROD.F
real, protected :: grazra = 1.2 ! 1/d - grazing rate
real, protected :: spemor = 3.*1.e6 ! 1/d - mortality rate
real, protected :: gammap = 0.04 ! 1/d - exudation rate
real, protected :: gammaz = 0.06 ! 1/d - excretion rate
real, protected :: ecan = 0.95 ! fraction of mortality as PO_4
real, protected :: zinges ! dimensionless fraction - assimilation efficiency
real, protected :: epsher ! dimensionless fraction - fraction of grazing egested
!********************************************************************
! Shell production (CaCO3 and opal) parameters
!********************************************************************
real, protected :: bkopal = 5.e-6 ! kmol/m3 - i.e. 4.0 mmol Si/m3 half saturation constant
real, protected :: rcalc ! calcium carbonate to organic phosphorous production ratio
real, protected :: ropal ! opal to organic phosphorous production ratio
real, protected :: calmax ! maximum CaCO3 production fraction
!********************************************************************
! Remineralization and dissolution parameters
!********************************************************************
real, parameter :: O2thresh_aerob = 5.e-8 ! Above O2thresh_aerob aerob remineralization takes place
real, parameter :: O2thresh_hypoxic = 5.e-7 ! Below O2thresh_hypoxic denitrification and sulfate reduction takes place (default model version)
real, parameter :: NO3thresh_sulf = 3.e-6 ! Below NO3thresh_sulf 'sufate reduction' takes place
real, protected :: remido = 0.004 ! 1/d - remineralization rate (of DOM)
! deep sea remineralisation constants
real, protected :: drempoc = 0.025 ! 1/d Aerob remineralization rate detritus
real, protected :: drempoc_anaerob = 1.25e-3 ! =0.05*drempoc - remin in sub-/anoxic environm. - not be overwritten by M4AGO
real, protected :: bkox_drempoc = 1e-7 ! half-saturation constant for oxygen for ammonification (aerobic remin via drempoc)
real, protected :: dremopal = 0.003 ! 1/d Dissolution rate for opal
real, protected :: dremn2o = 0.01 ! 1/d Remineralization rate of detritus on N2O
real, protected :: dremsul = 0.005 ! 1/d Remineralization rate for sulphate reduction
real, protected :: POM_remin_q10 = 2.1 ! Bidle et al. 2002: Regulation of Oceanic Silicon...
real, protected :: opal_remin_q10 = 2.6 ! Bidle et al. 2002: Regulation of Oceanic Silicon...
real, protected :: POM_remin_Tref = 10. ! [deg C] reference temperatue for Q10-dep. POC remin
real, protected :: opal_remin_Tref = 10. ! [deg C] reference temperature for Q10-dep. opal dissolution
!********************************************************************
! Extended nitrogen cycle
!********************************************************************
! WATER COLUMN
! Phytoplankton growth
real, protected :: bkphyanh4 = 0.25e-6 ! Half-saturation constant for NH4 uptake by bulk phytoplankton (kmol/m3)
real, protected :: bkphyano3 = 0.16e-6 ! Half-saturation constant for NO3 uptake by bulk phytoplankton (kmol/m3)
real, protected :: bkphosph = 0.01e-6 ! Half-saturation constant for PO4 uptake by bulk phytoplankton (kmol/m3)
real, protected :: bkiron ! = bkphosph*riron - Half-saturation constant for Fe uptake by bulk phytoplankton (kmol/m3)
! === Denitrification step NO3 -> NO2:
real, protected :: rano3denit = 0.00005 ! Maximum growth rate denitrification on NO3 at reference T (1/d -> 1/dt)
real, protected :: q10ano3denit = 2. ! Q10 factor for denitrification on NO3 (-)
real, protected :: Trefano3denit = 10. ! Reference temperature for denitrification on NO3 (degr C)
real, protected :: sc_ano3denit = 0.12e6 ! Shape factor for NO3 denitrification oxygen inhibition function (m3/kmol)
real, protected :: bkano3denit = 5.e-6 ! Half-saturation constant for NO3 denitrification (kmol/m3)
! === Anammox
real, protected :: rano2anmx = 0.001 ! Maximum growth rate for anammox at reference T (1/d -> 1/dt)
real, protected :: q10anmx = 1.6 ! Q10 factor for anammox (-)
real, protected :: Trefanmx = 10. ! Reference temperature for anammox (degr C)
real, protected :: alphaanmx = 0.45e6 ! Shape factor for anammox oxygen inhibition function (m3/kmol)
real, protected :: bkoxanmx = 11.3e-6 ! Half-saturation constant for oxygen inhibition function (kmol/m3)
real, protected :: bkano2anmx = 5.e-6 ! Half-saturation constant for NO2 limitation (kmol/m3)
real, protected :: bkanh4anmx ! = bkano2anmx * rnh4anmx/rno2anmx !Half-saturation constant for NH4 limitation of anammox (kmol/m3)
! === Denitrification step NO2 -> N2O
real, protected :: rano2denit = 0.002 ! Maximum growth rate denitrification on NO2 at reference T (1/d -> 1/dt)
real, protected :: q10ano2denit = 2.0 ! Q10 factor for denitrification on NO2 (-)
real, protected :: Trefano2denit = 10. ! Reference temperature for denitrification on NO2 (degr C)
real, protected :: bkoxano2denit = 2.e-6 ! Half-saturation constant for (quadratic) oxygen inhibition function of denitrification on NO2 (kmol/m3)
real, protected :: bkano2denit = 5.6e-6 ! Half-saturation constant for denitrification on NO2 (kmol/m3)
! === Denitrification step N2O -> N2
real, protected :: ran2odenit = 0.0005 ! Maximum growth rate denitrification on N2O at reference T (1/d -> 1/dt)
real, protected :: q10an2odenit = 3. ! Q10 factor for denitrificationj on N2O (-)
real, protected :: Trefan2odenit = 10. ! Reference temperature for denitrification on N2O (degr C)
real, protected :: bkoxan2odenit = 10e-6 ! Half-saturation constant for (quadratic) oxygen inhibition function of denitrification on N2O (kmol/m3)
real, protected :: bkan2odenit = 0.1e-6 ! Half-saturation constant for denitrification on N2O (kmol/m3)
! === DNRA NO2 -> NH4
real, protected :: rdnra = 0.0003 ! Maximum growth rate DNRA on NO2 at reference T (1/d -> 1/dt)
real, protected :: q10dnra = 2. ! Q10 factor for DNRA on NO2 (-)
real, protected :: Trefdnra = 10. ! Reference temperature for DNRA (degr C)
real, protected :: bkoxdnra = 2.5e-6 ! Half saturation constant for (quadratic) oxygen inhibition function of DNRA on NO2 (kmol/m3)
real, protected :: bkdnra = 0.05e-6 ! Half-saturation constant for DNRA on NO2 (kmol/m3)
! === Nitrification on NH4
real, protected :: ranh4nitr = 1. ! Maximum growth rate nitrification on NH4 at reference T (1/d -> 1/dt)
real, protected :: q10anh4nitr = 3.3 ! Q10 factor for nitrification on NH4 (-)
real, protected :: Trefanh4nitr = 20. ! Reference temperature for nitrification on NH4 (degr C)
real, protected :: bkoxamox = 0.333e-6 ! Half-saturation constant for oxygen limitation of nitrification on NH4 (kmol/m3)
real, protected :: bkanh4nitr = 0.133e-6 ! Half-saturation constant for nitrification on NH4 (kmol/m3)
real, protected :: bkamoxn2o = 0.5e-6 ! Half saturation constant for NH4 in pathway splitting function N2O for nitrification on NH4 (kmol/m3)
real, protected :: mufn2o ! = 0.11/(50.*1e6*bkoxamox) !=6.61e-3 0.11/(50*1e6)=2.2e-9 - ~Santoro et al. 2011 with simple MM,
real, protected :: bn2o ! = 0.077/(50.*mufn2o) !=0.2331 - before set to 0.3 - base fraction entering N2O
real, protected :: n2omaxy = 0.003 ! Maximum yield of OM on NH4 nitrification (-)
real, protected :: n2oybeta = 18. ! Decay factor for inhibition function for yield during nitrification on NH4 (kmol/m3)
real, protected :: bkyamox = 0.333e-6 ! Half saturation constant for pathway splitting function OM-yield for nitrification on NH4 (kmol/m3)
! === Nitrification on NO2
real, protected :: rano2nitr = 0.75 ! Maximum growth rate nitrification on NO2 at reference T (1/d -> 1/dt)
real, protected :: q10ano2nitr = 2.7 ! Q10 factor for nitrification on NO2 (-)
real, protected :: Trefano2nitr = 20. ! Reference temperature for nitrification on NO2 (degr C)
real, protected :: bkoxnitr = 0.788e-6 ! Half-saturation constant for oxygen limitation of nitrification on NO2 (kmol/m3)
real, protected :: bkano2nitr = 0.287e-6 ! Half-saturation constant for NO2 for nitrification on NO2 (kmol/m3)
real, protected :: NOB2AOAy = 0.44 ! Ratio of NOB versus AOA yield per energy source ~0.043/0.098 according to Zakem et al. 2022
!SEDIMENT
! === Ammonification in the sediment
real, protected :: POM_remin_q10_sed = 2.1 ! ammonification Q10 in sediment
real, protected :: POM_remin_Tref_sed = 10. ! ammonification Tref in sediment
real, protected :: bkox_drempoc_sed = 1e-7 ! half saturation constant for O2 limitatio of ammonification in sediment (kmol/m3)
! === Denitrification step NO3 -> NO2:
real, protected :: rano3denit_sed = 0.05 ! Maximum growth rate denitrification on NO3 at reference T (1/d -> 1/dt)
real, protected :: q10ano3denit_sed = 2. ! Q10 factor for denitrification on NO3 (-)
real, protected :: Trefano3denit_sed = 10. ! Reference temperature for denitrification on NO3 (degr C)
real, protected :: sc_ano3denit_sed = 0.12e6 ! Shape factor for NO3 denitrification oxygen inhibition function (m3/kmol)
real, protected :: bkano3denit_sed = 5.e-6 ! Half-saturation constant for NO3 denitrification (kmol/m3)
! === Anammox
real, protected :: rano2anmx_sed = 0.05 ! Maximum growth rate for anammox at reference T (1/d -> 1/dt)
real, protected :: q10anmx_sed = 1.6 ! Q10 factor for anammox (-)
real, protected :: Trefanmx_sed = 10. ! Reference temperature for anammox (degr C)
real, protected :: alphaanmx_sed = 0.45e6 ! Shape factor for anammox oxygen inhibition function (m3/kmol)
real, protected :: bkoxanmx_sed = 11.3e-6 ! Half-saturation constant for oxygen inhibition function (kmol/m3)
real, protected :: bkano2anmx_sed = 5.e-6 ! Half-saturation constant for NO2 limitation (kmol/m3)
real, protected :: bkanh4anmx_sed ! = bkano2anmx_sed * rnh4anmx/rno2anmx !Half-saturation constant for NH4 limitation of anammox (kmol/m3)
! === Denitrification step NO2 -> N2O
real, protected :: rano2denit_sed = 0.12 ! Maximum growth rate denitrification on NO2 at reference T (1/d -> 1/dt)
real, protected :: q10ano2denit_sed = 2. ! Q10 factor for denitrification on NO2 (-)
real, protected :: Trefano2denit_sed = 10. ! Reference temperature for denitrification on NO2 (degr C)
real, protected :: bkoxano2denit_sed = 2.e-6 ! Half-saturation constant for (quadratic) oxygen inhibition function of denitrification on NO2 (kmol/m3)
real, protected :: bkano2denit_sed = 5.6e-6 ! Half-saturation constant for denitrification on NO2 (kmol/m3)
! === Denitrification step N2O -> N2
real, protected :: ran2odenit_sed = 0.16 ! Maximum growth rate denitrification on N2O at reference T (1/d -> 1/dt)
real, protected :: q10an2odenit_sed = 3. ! Q10 factor for denitrificationj on N2O (-)
real, protected :: Trefan2odenit_sed = 10. ! Reference temperature for denitrification on N2O (degr C)
real, protected :: bkoxan2odenit_sed = 5.e-6 ! Half-saturation constant for (quadratic) oxygen inhibition function of denitrification on N2O (kmol/m3)
real, protected :: bkan2odenit_sed = 1.e-6 ! Half-saturation constant for denitrification on N2O (kmol/m3)
! === DNRA NO2 -> NH4
real, protected :: rdnra_sed = 0.1 ! Maximum growth rate DNRA on NO2 at reference T (1/d -> 1/dt)
real, protected :: q10dnra_sed = 2. ! Q10 factor for DNRA on NO2 (-)
real, protected :: Trefdnra_sed = 10. ! Reference temperature for DNRA (degr C)
real, protected :: bkoxdnra_sed = 2.5e-6 ! Half saturation constant for (quadratic) oxygen inhibition function of DNRA on NO2 (kmol/m3)
real, protected :: bkdnra_sed = 0.05e-6 ! Half-saturation constant for DNRA on NO2 (kmol/m3)
! === Nitrification on NH4
real, protected :: ranh4nitr_sed = 1. ! Maximum growth rate nitrification on NH4 at reference T (1/d -> 1/dt)
real, protected :: q10anh4nitr_sed = 3.3 ! Q10 factor for nitrification on NH4 (-)
real, protected :: Trefanh4nitr_sed = 20. ! Reference temperature for nitrification on NH4 (degr C)
real, protected :: bkoxamox_sed = 0.333e-6 ! Half-saturation constant for oxygen limitation of nitrification on NH4 (kmol/m3)
real, protected :: bkanh4nitr_sed = 0.133e-6 ! Half-saturation constant for nitrification on NH4 (kmol/m3)
real, protected :: bkamoxn2o_sed = 0.5e-6 ! Half saturation constant for NH4 in pathway splitting function N2O for nitrification on NH4 (kmol/m3)
real, protected :: mufn2o_sed ! = 0.11/(50.*1e6*bkoxamox_sed) !=6.61e-3 0.11/(50*1e6)=2.2e-9 - ~Santoro et al. 2011 with simple MM
real, protected :: bn2o_sed ! = 0.077/(50.*mufn2o_sed) !=0.2331 - before set to 0.3 - base fraction entering N2O
real, protected :: n2omaxy_sed = 0.003 ! Maximum yield of OM on NH4 nitrification (-)
real, protected :: n2oybeta_sed = 18. ! Decay factor for inhibition function for yield during nitrification on NH4 (kmol/m3)
real, protected :: bkyamox_sed = 0.333e-6 ! Half saturation constant for pathway splitting function OM-yield for nitrification on NH4 (kmol/m3)
! === Nitrification on NO2
real, protected :: rano2nitr_sed = 1.54 ! Maximum growth rate nitrification on NO2 at reference T (1/d -> 1/dt)
real, protected :: q10ano2nitr_sed = 2.7 ! Q10 factor for nitrification on NO2 (-)
real, protected :: Trefano2nitr_sed = 20. ! Reference temperature for nitrification on NO2 (degr C)
real, protected :: bkoxnitr_sed = 0.788e-6 ! Half-saturation constant for oxygen limitation of nitrification on NO2 (kmol/m3)
real, protected :: bkano2nitr_sed = 0.287e-6 ! Half-saturation constant for NO2 for nitrification on NO2 (kmol/m3)
real, protected :: NOB2AOAy_sed = 0.44 ! Ratio of NOB versus AOA yield per energy source ~0.043/0.098 according to Zakem et al. 2022
!********************************************************************
! Parameters for DMS and BrO schemes
!********************************************************************
! Set constants for dms scheme following Kloster et al. (2006), Table 1
real, protected :: dmsp1 = 10. ! 2*5. production with temp
real, protected :: dmsp2 = 0.0011
real, protected :: dmsp3 = 0.0864 ! bacterial removal, but reduced 50% to increase dms emissions
real, protected :: dmsp4 = 1.25*0.10 ! production with delcar, but reduced by ~7%
real, protected :: dmsp5 = 1.25*0.02 ! production with delsil, but increased by a factor of ~2
real, protected :: dmsp6 = 0.100000000E-07 ! half saturation microbial
! Scaling factor for pH dependency (used if with_dmsph=.true.)
real, parameter :: dms_gamma = 0.87
!Bromoform to phosphate ratio (Hense and Quack, 2009)
!JT: too little production: 0.25Gmol/yr rbro=6.72e-7*rnit
! rbro=2.*6.72e-7*rnit
!JT Following discussion with B. Quack and D. Booge (01.07.2021), we agree to use 2.4e-6
real, protected :: rbro = 2.4e-6*rnit
real, protected :: fbro1 = 1.0
real, protected :: fbro2 = 1.0
!********************************************************************
! Sinking parameters
!********************************************************************
real, protected :: wpoc_const = 5. ! m/d Sinking speed of detritus iris : 5.
real, protected :: wcal_const = 30. ! m/d Sinking speed of CaCO3 shell material
real, protected :: wopal_const = 30. ! m/d Sinking speed of opal iris : 60
real, protected :: wdust_const ! m/d Sinking speed of dust
real, protected :: wmin = 1. ! m/d minimum sinking speed
real, protected :: wmax = 60. ! m/d maximum sinking speed
real, protected :: wlin = 60./2400. ! m/d/m constant describing incr. with depth, r/a=1.0
real, protected :: dustd1 = 0.0001 ! cm = 1 um, boundary between clay and silt
real, protected :: dustd2 ! dust diameter squared
real, protected :: dustd3 ! dust diameter cubed
real, protected :: dustsink ! sinking speed of dust (used use_AGG)
real, protected :: SinkExp, FractDim, Stick, cellmass
real, protected :: fsh, fse,alow1, alow2,alow3,alar1,alar2,alar3,TSFac,TMFac
real, protected :: vsmall,safe,pupper,plower,zdis,nmldmin
real, protected :: cellsink = 9999.
!********************************************************************
! Shelfsea water residence time
!********************************************************************
real, protected :: shelfbreak_depth = 200. ! [m] shelf-break depth fall-back value, if no shelfseaa mask file provided
!********************************************************************
! Sediment biogeochemistry
!********************************************************************
! Note that the rates in the sediment are given in per second here!
!
real, protected :: sed_O2thresh_hypoxic = 1.e-6 ! Below sed_O2thresh_hypoxic denitrification takes place (default model version)
real, protected :: sed_O2thresh_sulf = 3.e-6 ! Below sed_O2thresh_sulf 'sulfate reduction' takes place
real, protected :: sed_NO3thresh_sulf = 3.e-6 ! Below sed_NO3thresh_sulf 'sufate reduction' takes place
real, protected :: sedict = 1.e-9 ! m2/s Molecular diffusion coefficient
real, protected :: silsat = 0.001 ! kmol/m3 Silicate saturation concentration is 1 mol/m3
real, protected :: disso_poc = 0.432 / 86400. ! 1/(kmol O2/m3 s) Degradation rate constant of POP
real, protected :: disso_sil = 3.e-8 ! 1/(kmol Si(OH)4/m3 s) Dissolution rate constant of opal
real, protected :: disso_caco3 = 1.e-7 ! 1/(kmol CO3--/m3 s) Dissolution rate constant of CaCO3
real, protected :: sed_denit = 0.01/86400. ! 1/s Denitrification rate constant of POP
real, protected :: sed_sulf = 0.01/86400. ! 1/s "Sulfate reduction" rate constant of POP
real, protected :: sed_alpha_poc = 1./90. ! 1/d 1/decay time for sediment moving average - assuming ~3 month memory here
real, protected :: sed_qual_sc = 1. ! scaling factor for sediment quality-based remineralization
!********************************************************************
! Densities etc. for SEDIMENT SHIFTING
!********************************************************************
! define weight of calcium carbonate, opal, and poc [kg/kmol]
real, parameter :: calcwei = 100. ! 40+12+3*16 kg/kmol C
real, parameter :: opalwei = 60. ! 28 + 2*16 kg/kmol Si
real, parameter :: orgwei = 30. ! from 12 kg/kmol * 2.5 POC[kg]/DW[kg]
! after Alldredge, 1998:
! POC(g)/DW(g) = 0.4 of diatom marine snow, size 1mm3
! define densities of opal, caco3, poc [kg/m3]
real, parameter :: calcdens = 2600.
real, parameter :: opaldens = 2200.
real, parameter :: orgdens = 1000.
real, parameter :: claydens = 2600. ! quartz
!********************************************************************
! Module-wide variables used in more than one subroutine
!********************************************************************
real :: beta13, alpha14, d14cat, d13c_atm
contains
!********************************************************************
subroutine ini_parambgc()
!
! First, Initialze parameters of individual components with default values.
! The order of initialization can matter due to interdependcies.
! Then read the namelist and initialize dependent parameter values
! adjust rates to 'per time step'
! Eventually write out the used parameters to the log file
!
call ini_param_biol() ! initialize biological parameters
if (use_AGG) then
call ini_aggregation() ! Initialize aggregation module of Iris Kriest (no NML read thus far)
endif
call read_bgcnamelist() ! read the BGCPARAMS namelist
call calc_param_atm() ! calculate atmospheric parameters after updating parameters via nml
call calc_param_biol() ! potentially readjust namlist parameter-dependent parameters
call rates_2_timestep() ! Converting rates from /d... to /dtb
call write_parambgc() ! write out used parameters and calculate back rates from /dtb to /d..
end subroutine ini_parambgc
!********************************************************************
subroutine calc_param_atm()
!
! AFTER having read the namelist:
! calculate parameters for atmosphere from given parameters
!
if (use_cisonew) then
beta13 = (prei13/1000.)+1.
alpha14 = 2.*(prei13+25.)
d14cat = (prei14+alpha14)/(1.-alpha14/1000.)
! calculate atm_c13 and atm_c14
atm_c13 = beta13*re1312*atm_co2/(1.+beta13*re1312)
d13C_atm = (((atm_c13/(atm_co2-atm_c13))/re1312)-1.)*1000.
! absolute 14c concentration in preindustrial atmosphere
atm_c14 = ((d14cat/1000.)+1.)*re14to*atm_co2
! factor for normalizing 14C tracers (~1e-12)
c14fac = atm_c14/atm_co2
endif
end subroutine calc_param_atm
!********************************************************************
subroutine ini_param_biol()
!
! BEFORE reading the namelist:
! Default parameters that depend on use case
!
!*************************************************
! Zooplankton parameters
!*************************************************
if (use_AGG) then
zinges = 0.5 ! dimensionless fraction -assimilation efficiency
epsher = 0.9 ! dimensionless fraction -fraction of grazing egested
else if (use_WLIN) then
zinges = 0.7 ! dimensionless fraction -assimilation efficiency
epsher = 0.85 ! dimensionless fraction -fraction of grazing egested
else
zinges = 0.6 ! dimensionless fraction -assimilation efficiency
epsher = 0.8 ! dimensionless fraction -fraction of grazing egest
endif
!*************************************************
! Shell production (CaCO3 and opal) parameters
!*************************************************
if (use_AGG) then
rcalc = 14. ! calcium carbonate to organic phosphorous production ratio
ropal = 10.5 ! opal to organic phosphorous production ratio
calmax = 0.20
else if (use_WLIN) then
rcalc = 33. ! calcium carbonate to organic phosphorous production ratio
ropal = 45. ! opal to organic phosphorous production ratio
else
rcalc = 40. ! iris 40 !calcium carbonate to organic phosphorous production ratio
ropal = 30. ! iris 25 !opal to organic phosphorous production ratio
endif
if (use_M4AGO) then
! reset drempoc and dremopal for Q10 T-dep remin/dissolution
drempoc = 0.12
dremopal = 0.023
endif
end subroutine ini_param_biol
!********************************************************************
subroutine read_bgcnamelist()
!
! READ the bgcparams namelist for parameter tuning.
! Note that afterward, i) rates need to be adjusted for timestep
! and some depending parameters need re-calculation
!
integer :: iounit
namelist /bgcparams/ bkphy,dyphy,bluefix,bkzoo,grazra,spemor,gammap,gammaz, &
ecan,zinges,epsher,bkopal,rcalc,ropal, &
remido,drempoc,dremopal,dremn2o,dremsul,fetune,relaxfe, &
wmin,wmax,wlin,wpoc_const,wcal_const,wopal_const, &
disso_poc,disso_sil,disso_caco3, &
rano3denit,rano2anmx,rano2denit,ran2odenit,rdnra, &
ranh4nitr,rano2nitr,rano3denit_sed,rano2anmx_sed, &
rano2denit_sed,ran2odenit_sed,rdnra_sed,ranh4nitr_sed, &
rano2nitr_sed,atm_nh3,atm_n2o,bkphyanh4,bkphyano3, &
bkphosph, &
q10ano3denit,sc_ano3denit,bkano3denit,q10anmx,alphaanmx,&
bkoxanmx,bkano2anmx,q10ano2denit, &
bkoxano2denit,bkano2denit,q10an2odenit,bkoxan2odenit, &
bkan2odenit,q10dnra,bkoxdnra,bkdnra,q10anh4nitr, &
bkoxamox,bkanh4nitr,q10ano2nitr,bkoxnitr,bkano2nitr, &
q10ano3denit_sed,sc_ano3denit_sed,bkano3denit_sed, &
q10anmx_sed,alphaanmx_sed,bkox_drempoc_sed, &
bkoxanmx_sed,bkano2anmx_sed,q10ano2denit_sed, &
bkoxano2denit_sed,bkano2denit_sed,q10an2odenit_sed, &
bkoxan2odenit_sed,bkan2odenit_sed,q10dnra_sed, &
bkoxdnra_sed,bkdnra_sed,q10anh4nitr_sed, &
bkoxamox_sed,bkanh4nitr_sed,q10ano2nitr_sed, &
bkoxnitr_sed,bkano2nitr_sed,sed_alpha_poc,sed_qual_sc, &
sed_denit,sed_sulf, &
sed_O2thresh_hypoxic,sed_O2thresh_sulf,sed_NO3thresh_sulf
if (mnproc.eq.1) then
write(io_stdo_bgc,*)
write(io_stdo_bgc,*)'********************************************'
write(io_stdo_bgc,*) 'iHAMOCC: read namelist bgcparams'
endif
open (newunit=iounit, file=bgc_namelist, status='old',action='read')
read (unit=iounit, nml=BGCPARAMS)
close(unit=iounit)
if (mnproc.eq.1) then
write(io_stdo_bgc,nml=BGCPARAMS)
endif
end subroutine read_bgcnamelist
!********************************************************************
subroutine calc_param_biol()
!
! AFTER reading the namelist:
! calulate parameters that depend on other tunable parameters
!
bifr14_ini = bifr13_ini**2
perc_diron = fetune * 0.035 * 0.01 / 55.85
dustd2 = dustd1*dustd1
dustsink = (9.81 * 86400. / 18. & ! g * sec per day / 18.
* (claydens - 1025.) / 1.567 * 1000. & ! excess density / dyn. visc.
* dustd2 * 1.e-4) ! m/d
if (use_extNcycle) then
bkiron = bkphosph*riron ! Half-saturation constant for Fe uptake by bulk phytoplankton (kmol/m3)
bkanh4anmx = bkano2anmx * rnh4anmx/rno2anmx ! Half-saturation constant for NH4 limitation of anammox (kmol/m3)
mufn2o = 0.11/(50.*1e6*bkoxamox) ! =6.61e-3 0.11/(50*1e6)=2.2e-9 - ~Santoro et al. 2011 with simple MM,
bn2o = 0.077/(50.*mufn2o) ! =0.2331 - before set to 0.3 - base fraction entering N2O
bkanh4anmx_sed = bkano2anmx_sed * rnh4anmx/rno2anmx !Half-saturation constant for NH4 limitation of anammox (kmol/m3)
mufn2o_sed = 0.11/(50.*1e6*bkoxamox_sed) !=6.61e-3 0.11/(50*1e6)=2.2e-9 - ~Santoro et al. 2011 with simple MM
bn2o_sed = 0.077/(50.*mufn2o_sed) !=0.2331 - before set to 0.3 - base fraction entering N2O
lTO2depremin = .true.
endif
if (use_M4AGO) lTO2depremin = .true.
end subroutine calc_param_biol
!********************************************************************
subroutine rates_2_timestep()
!
! AFTER potential update of rates, convert them to rates per timestep
!
use mo_control_bgc, only: dtb,dtbgc
!********************************************************************
! Phytoplankton parameters (incl. cyanobacteria)
!********************************************************************
dyphy = dyphy*dtb ! 1/d -mortality rate of phytoplankton
! nitrogen fixation by blue green algae
bluefix = bluefix*dtb ! 1/d
if (use_cisonew) then
c14dec = 1.-(log(2.)/c14_t_half)*dtb ! lambda [1/day]; c14dec[-]
endif
!********************************************************************
! Zooplankton parameters
!********************************************************************
grazra = grazra*dtb ! 1/d to 1/time step - grazing rate
spemor = spemor*dtb ! 1/d to 1/time step - mortality rate
gammap = gammap*dtb ! 1/d to 1/time step - exudation rate
gammaz = gammaz*dtb ! 1/d to 1/time step - excretion rate
!********************************************************************
! Remineralization and dissolution parameters
!********************************************************************
remido = remido*dtb ! 1/d to 1/time step - remineralization rate (of DOM)
! deep sea remineralisation constants
drempoc = drempoc*dtb ! 1/d to 1/time step Aerob remineralization rate of detritus
drempoc_anaerob = drempoc_anaerob*dtb ! 1/d Anaerob remin rate of detritus
dremopal = dremopal*dtb ! 1/d to 1/time step Dissolution rate of opal
dremn2o = dremn2o*dtb ! 1/d to 1/time step Remineralization rate of detritus on N2O
dremsul = dremsul*dtb ! 1/d to 1/time step Remineralization rate for sulphate reduction
!********************************************************************
! Parameters for DMS and BrO schemes
!********************************************************************
dmsp2 = dmsp2*dtb
dmsp3 = dmsp3*dtb ! 1/d to 1/time-step bacterial removal
!********************************************************************
! Dust deposition and iron solubility parameters
!********************************************************************
relaxfe = relaxfe*dtb ! 1/d to 1/time step iron complexation rate
!********************************************************************
! Sinking parameters
!********************************************************************
wpoc_const = wpoc_const*dtb ! m/d to m/time step Sinking speed detritusiris : 5.
wcal_const = wcal_const*dtb ! m/d to m/time step Sinking speed CaCO3
wopal_const = wopal_const*dtb ! m/d to m/time step Sinking speed opal iris : 60
wmin = wmin*dtb ! m/d to m/time step minimum sinking speed
wmax = wmax*dtb ! m/d to m/time step maximum sinking speed
wlin = wlin*dtb ! m/d/m to m/time step/m constant describing incr. with depth, r/a=1.0
dustsink = dustsink*dtb ! m/d to m/time step Sinking speed dust (used in use_AGG)
wdust_const = dustsink ! m/d to m/time step Sinking speed dust
if(dustsink.gt.cellsink .and. use_AGG) then
if (mnproc.eq.1)then
write(io_stdo_bgc,*) ' dust sinking speed greater than cellsink'
write(io_stdo_bgc,*) ' set dust sinking speed to cellsink'
endif
dustsink = cellsink
endif
!********************************************************************
! Sediment rates
!********************************************************************
sedict = sedict * dtbgc ! m2/time step Molecular diffusion coefficient
disso_sil = disso_sil * dtbgc ! 1/(kmol Si(OH)4/m3 time step) Dissolution rate constant of opal
disso_poc = disso_poc * dtbgc ! 1/(kmol O2/m3 time step) Degradation rate constant of POP
disso_caco3 = disso_caco3 * dtbgc ! 1/(kmol CO3--/m3 time step) Dissolution rate constant of CaCO3
sed_denit = sed_denit * dtbgc ! 1/time step Denitrification rate constant of POP
sed_sulf = sed_sulf * dtbgc ! 1/time step "Sulfate reduction" rate constant of POP
if (use_extNcycle) then
rano3denit = rano3denit *dtb ! Maximum growth rate denitrification on NO3 at reference T (1/d -> 1/dt)
rano2anmx = rano2anmx *dtb ! Maximum growth rate for anammox at reference T (1/d -> 1/dt)
rano2denit = rano2denit *dtb ! Maximum growth rate denitrification on NO2 at reference T (1/d -> 1/dt)
ran2odenit = ran2odenit *dtb ! Maximum growth rate denitrification on N2O at reference T (1/d -> 1/dt)
rdnra = rdnra *dtb ! Maximum growth rate DNRA on NO2 at reference T (1/d -> 1/dt)
ranh4nitr = ranh4nitr *dtb ! Maximum growth rate nitrification on NH4 at reference T (1/d -> 1/dt)
rano2nitr = rano2nitr *dtb ! Maximum growth rate nitrification on NO2 at reference T (1/d -> 1/dt)
rano3denit_sed = rano3denit_sed *dtb ! Maximum growth rate denitrification on NO3 at reference T (1/d -> 1/dt)
rano2anmx_sed = rano2anmx_sed *dtb ! Maximum growth rate for anammox at reference T (1/d -> 1/dt)
rano2denit_sed = rano2denit_sed *dtb ! Maximum growth rate denitrification on NO2 at reference T (1/d -> 1/dt)
ran2odenit_sed = ran2odenit_sed *dtb ! Maximum growth rate denitrification on N2O at reference T (1/d -> 1/dt)
rdnra_sed = rdnra_sed *dtb ! Maximum growth rate DNRA on NO2 at reference T (1/d -> 1/dt)
ranh4nitr_sed = ranh4nitr_sed *dtb ! Maximum growth rate nitrification on NH4 at reference T (1/d -> 1/dt)
rano2nitr_sed = rano2nitr_sed *dtb ! Maximum growth rate nitrification on NO2 at reference T (1/d -> 1/dt)
endif
end subroutine rates_2_timestep
!********************************************************************
subroutine ini_aggregation()
!
! parameters needed for the aggregation module
!
use mo_control_bgc, only: dtb
real :: shear
SinkExp = 0.62
FractDim = 1.62
!Stick = 0.40
!Stick = 0.25
Stick = 0.15
cellmass = 0.012 / rnit ![nmol P]
!ik cellmass = 0.0039/ rnit ![nmol P] for a 10 um diameter
cellsink = 1.40 *dtb! [m/d]
!ik cellsink = 0.911 *dtb! [m/d] for a 10 um diameter
!shear = 86400. !shear in the mixed layer, 1.0 d-1
!shear = 64800. !shear in the mixed layer, 0.75 d-1
shear = 43200. !shear in the mixed layer, 0.5 d-1
fsh = 0.163 * shear *dtb
fse = 0.125 * 3.1415927 * cellsink * 100.
alow1 = 0.002 !diameter of smallest particle [cm]
!ik alow1 = 0.001 !diameter of smallest particle [cm]
alow2 = alow1 * alow1
alow3 = alow2 * alow1
!alar1 = 1.0 !diameter of largest particle for size dependend aggregation and sinking [cm]
!alar1 = 0.75 !diameter of largest particle for size dependend aggregation and sinking [cm]
alar1 = 0.5 !diameter of largest particle for size dependend aggregation and sinking [cm]
vsmall = 1.e-9
safe = 1.e-6
pupper = safe/((FractDim+safe)*cellmass)
plower = 1./(1.1*cellmass)
zdis = 0.01 / ((FractDim + 0.01)*cellmass)
nmldmin = 0.1 ! minimum particle number in mixed layer
alar2 = alar1 * alar1
alar3 = alar2 * alar1
TSFac = (alar1/alow1)**SinkExp
TMFac = (alar1/alow1)**FractDim
end subroutine ini_aggregation
!********************************************************************
subroutine write_parambgc()
!
! Write parameters
!
use mo_control_bgc, only: dtb,dtbgc
! Local variables
real :: dtbinv,dtbgcinv
dtbinv = 1./dtb
dtbgcinv = 1./dtbgc
if (mnproc.eq.1) then
write(io_stdo_bgc,*)
write(io_stdo_bgc,*) '********************************************'
write(io_stdo_bgc,*) '* iHAMOCC configuration: '
call cinfo_add_entry('use_BROMO', use_BROMO)
call cinfo_add_entry('use_AGG', use_AGG)
call cinfo_add_entry('use_WLIN', use_WLIN)
call cinfo_add_entry('use_natDIC', use_natDIC)
call cinfo_add_entry('use_CFC', use_CFC)
call cinfo_add_entry('use_cisonew', use_cisonew)
call cinfo_add_entry('use_extNcycle', use_extNcycle)
call cinfo_add_entry('use_PBGC_OCNP_TIMESTEP', use_PBGC_OCNP_TIMESTEP)
call cinfo_add_entry('use_PBGC_CK_TIMESTEP', use_PBGC_CK_TIMESTEP)
call cinfo_add_entry('use_FB_BGC_OCE', use_FB_BGC_OCE)
call cinfo_add_entry('use_BOXATM', use_BOXATM)
call cinfo_add_entry('use_sedbypass', use_sedbypass)
write(io_stdo_bgc,*) '* ocn_co2_type = ',ocn_co2_type
call cinfo_add_entry('do_ndep', do_ndep)
call cinfo_add_entry('do_rivinpt', do_rivinpt)
call cinfo_add_entry('do_oalk', do_oalk)
call cinfo_add_entry('with_dmsph', with_dmsph)
call cinfo_add_entry('do_sedspinup', do_sedspinup)
call cinfo_add_entry('l_3Dvarsedpor', l_3Dvarsedpor)
call cinfo_add_entry('lkwrbioz_off', lkwrbioz_off)
call cinfo_add_entry('lTO2depremin', lTO2depremin)
call cinfo_add_entry('use_shelfsea_res_time', use_shelfsea_res_time)
call cinfo_add_entry('use_sediment_quality', use_sediment_quality)
call cinfo_add_entry('use_M4AGO', use_M4AGO)
call cinfo_add_entry('use_pref_tracers', use_pref_tracers)
call cinfo_add_entry('use_coupler_ndep', use_coupler_ndep)
if (use_extNcycle) then
call cinfo_add_entry('do_n2onh3_coupled', do_n2onh3_coupled)
endif
write(io_stdo_bgc,*) '* '
write(io_stdo_bgc,*) '* Values of MO_PARAM_BGC variables : '
call pinfo_add_entry('atm_co2', atm_co2)
if (use_cisonew) then
call pinfo_add_entry('atm_c13', atm_c13)
call pinfo_add_entry('d13C_atm', d13C_atm)
call pinfo_add_entry('atm_c14', atm_c14)
call pinfo_add_entry('bifr13_ini', bifr13_ini)
call pinfo_add_entry('bifr14_ini', bifr14_ini)
call pinfo_add_entry('c14fac', c14fac)
call pinfo_add_entry('prei13', prei13)
call pinfo_add_entry('prei14', prei14)
call pinfo_add_entry('re1312', re1312)
call pinfo_add_entry('re14to', re14to)
call pinfo_add_entry('c14_t_half', c14_t_half)
call pinfo_add_entry('c14dec', c14dec)
call pinfo_add_entry('beta13', beta13)
call pinfo_add_entry('alpha14', alpha14)
call pinfo_add_entry('d14cat', d14cat)
call pinfo_add_entry('c14fac', c14fac)
endif
call pinfo_add_entry('atm_o2', atm_o2)
call pinfo_add_entry('atm_n2', atm_n2)
call pinfo_add_entry('atm_n2o', atm_n2o)
if (use_extNcycle) then
call pinfo_add_entry('atm_nh3',atm_nh3)
endif
call pinfo_add_entry('phytomi', phytomi)
call pinfo_add_entry('grami', grami)
call pinfo_add_entry('remido', remido*dtbinv)
call pinfo_add_entry('dyphy', dyphy*dtbinv)
call pinfo_add_entry('zinges', zinges)
call pinfo_add_entry('epsher', epsher)
call pinfo_add_entry('grazra', grazra*dtbinv)
call pinfo_add_entry('spemor', spemor*dtbinv)
call pinfo_add_entry('gammap', gammap*dtbinv)
call pinfo_add_entry('gammaz', gammaz*dtbinv)
call pinfo_add_entry('ecan', ecan)
call pinfo_add_entry('pi_alpha', pi_alpha)
call pinfo_add_entry('bkphy', bkphy)
call pinfo_add_entry('bkzoo', bkzoo)
call pinfo_add_entry('bkopal', bkopal)
call pinfo_add_entry('wpoc_const', wpoc_const*dtbinv)
call pinfo_add_entry('wcal_const', wcal_const*dtbinv)
call pinfo_add_entry('wopal_const', wopal_const*dtbinv)
call pinfo_add_entry('O2thresh_aerob', O2thresh_aerob)
call pinfo_add_entry('O2thresh_hypoxic',O2thresh_hypoxic)
call pinfo_add_entry('NO3thresh_sulf', NO3thresh_sulf)
call pinfo_add_entry('drempoc', drempoc*dtbinv)
call pinfo_add_entry('dremopal', dremopal*dtbinv)
call pinfo_add_entry('dremn2o', dremn2o*dtbinv)
call pinfo_add_entry('dremsul', dremsul*dtbinv)
call pinfo_add_entry('bluefix', bluefix*dtbinv)
call pinfo_add_entry('tf0', tf0)
call pinfo_add_entry('tf1', tf1)
call pinfo_add_entry('tf2', tf2)
call pinfo_add_entry('tff', tff)
call pinfo_add_entry('ro2ut', ro2ut)
call pinfo_add_entry('rcar', rcar)
call pinfo_add_entry('rnit', rnit)
call pinfo_add_entry('rnoi', rnoi)
call pinfo_add_entry('rdnit0', rdnit0)
call pinfo_add_entry('rdnit1', rdnit1)
call pinfo_add_entry('rdnit2', rdnit2)
call pinfo_add_entry('rdn2o1', rdn2o1)
call pinfo_add_entry('rdn2o2', rdn2o2)
call pinfo_add_entry('rcalc', rcalc)
call pinfo_add_entry('ropal', ropal)
call pinfo_add_entry('ctochl', ctochl)
call pinfo_add_entry('atten_w', atten_w)
call pinfo_add_entry('atten_c', atten_c)
call pinfo_add_entry('atten_f', atten_f)
call pinfo_add_entry('atten_uv', atten_uv)
call pinfo_add_entry('fetune', fetune)
call pinfo_add_entry('perc_diron', perc_diron)
call pinfo_add_entry('riron', riron)
call pinfo_add_entry('fesoly', fesoly)
call pinfo_add_entry('relaxfe', relaxfe*dtbinv)
call pinfo_add_entry('dmsp1', dmsp1)
call pinfo_add_entry('dmsp2', dmsp2*dtbinv)
call pinfo_add_entry('dmsp3', dmsp3*dtbinv)
call pinfo_add_entry('dmsp4', dmsp4)
call pinfo_add_entry('dmsp5', dmsp5)
call pinfo_add_entry('dmsp6', dmsp6)
if (use_BROMO) then
call pinfo_add_entry('rbro', rbro)
call pinfo_add_entry('atm_bromo', atm_bromo)
call pinfo_add_entry('fbro1', fbro1)
call pinfo_add_entry('fbro2', fbro2)
endif
if (use_WLIN .and. .not. use_AGG) then
call pinfo_add_entry('wmin', wmin*dtbinv)
call pinfo_add_entry('wmax', wmax*dtbinv)
call pinfo_add_entry('wlin', wlin*dtbinv)
endif
if (.not. use_AGG) then
call pinfo_add_entry('dustd1', dustd1)
call pinfo_add_entry('dustd2', dustd2)
call pinfo_add_entry('dustsink', dustsink*dtbinv)
call pinfo_add_entry('wdust_const', wdust_const*dtbinv)
else
write(io_stdo_bgc,*)
write(io_stdo_bgc,*) '********************************************'
write(io_stdo_bgc,*) '* iHAMOCC aggregate sinking scheme:'
call pinfo_add_entry('alar1', alar1)
call pinfo_add_entry('alar2', alar2)
call pinfo_add_entry('alar3', alar3)
call pinfo_add_entry('alow1', alow1)
call pinfo_add_entry('alow2', alow2)
call pinfo_add_entry('alow3', alow3)
call pinfo_add_entry('calmax', calmax)
call pinfo_add_entry('cellmass', cellmass)
call pinfo_add_entry('cellsink', cellsink)
call pinfo_add_entry('dustd1', dustd1)
call pinfo_add_entry('dustd2', dustd2)
call pinfo_add_entry('dustd3', dustd3)
call pinfo_add_entry('fractdim', fractdim)
call pinfo_add_entry('fse', fse)
call pinfo_add_entry('fsh', fsh)
call pinfo_add_entry('nmldmin', nmldmin)
call pinfo_add_entry('plower', plower)
call pinfo_add_entry('pupper', pupper)
call pinfo_add_entry('safe', safe)
call pinfo_add_entry('sinkexp', sinkexp)
call pinfo_add_entry('stick', stick)
call pinfo_add_entry('tmfac', tmfac)
call pinfo_add_entry('tsfac', tsfac)