Skip to content

Commit 7c0e7e6

Browse files
Merge branch 'seaice/develop' into release-v6.1
This merges in the seaice change since v6.0 that are needed for release. * MPAS-Dev/MPAS-Model/seaice/develop: Removed reference to restartability_bgc in testing system. Added restart testing capability to restartability.py Added BGC testing and corrected 0 dimension Corrects iron uptake when carbon is active. Commented out two flags and updated bgc parameter defaults.
2 parents e87e53b + ee21028 commit 7c0e7e6

File tree

5 files changed

+57
-44
lines changed

5 files changed

+57
-44
lines changed

src/core_seaice/Registry.xml

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
description="Number of dissolved organic carbon groups in use"
158158
/>
159159
<dim name="nDIC"
160-
definition="0"
160+
definition="1"
161161
description="Number of dissolved inorganic carbon groups in use"
162162
/>
163163
<dim name="nDON"
@@ -779,7 +779,7 @@
779779
possible_values="positive real number less than 1"
780780
icepack_name="grid_o_t"
781781
/>
782-
<nml_option name="config_bio_gravity_drainage_length_scale" type="real" default_value="0.024" units="m"
782+
<nml_option name="config_bio_gravity_drainage_length_scale" type="real" default_value="20." units="m"
783783
description="positive real number less than 1"
784784
possible_values="Sets the gravity drainage length scale in the biological transport model"
785785
icepack_name="l_sk"
@@ -799,7 +799,7 @@
799799
possible_values="real between 0 and 1 or negative. If negative, compute porosity from snow density"
800800
icepack_name="phi_snow"
801801
/>
802-
<nml_option name="config_new_ice_fraction_biotracer" type="real" default_value="0.80" units="unitless"
802+
<nml_option name="config_new_ice_fraction_biotracer" type="real" default_value="1.0" units="unitless"
803803
description="Fraction of biological tracer retained as new sea ice is formed from ocean water"
804804
possible_values="positive real number less than or equal to 1"
805805
icepack_name="initbio_frac"
@@ -889,17 +889,17 @@
889889
possible_values="positive real less than one"
890890
icepack_name="fr_resp"
891891
/>
892-
<nml_option name="config_rapid_mobile_to_stationary_time" type="real" default_value="5200.0" units="seconds"
892+
<nml_option name="config_rapid_mobile_to_stationary_time" type="real" default_value="3600.0" units="seconds"
893893
description="Rapid adsorption timescale "
894894
possible_values="zero or positive real number"
895895
icepack_name="tau_min"
896896
/>
897-
<nml_option name="config_long_mobile_to_stationary_time" type="real" default_value="173000.0" units="seconds"
897+
<nml_option name="config_long_mobile_to_stationary_time" type="real" default_value="7776000.0" units="seconds"
898898
description="Slow adsorption timescale"
899899
possible_values="zero or positive real number"
900900
icepack_name="tau_max"
901901
/>
902-
<nml_option name="config_algal_maximum_velocity" type="real" default_value="0.0000000111" units="m/s"
902+
<nml_option name="config_algal_maximum_velocity" type="real" default_value="0.0000001" units="m/s"
903903
description="Maximum speed at which diatoms can move"
904904
possible_values="zero or positive real number "
905905
icepack_name="algal_vel"
@@ -929,32 +929,32 @@
929929
possible_values="positive real"
930930
icepack_name="chlabs_phaeo"
931931
/>
932-
<nml_option name="config_light_attenuation_diatoms" type="real" default_value="0.8" units="1/(W/m^2)"
932+
<nml_option name="config_light_attenuation_diatoms" type="real" default_value="0.3" units="1/(W/m^2)"
933933
description="Controls the ability of diatoms to utilize light"
934934
possible_values="positive real less than 1"
935935
icepack_name="alpha2max_low_diatoms"
936936
/>
937-
<nml_option name="config_light_attenuation_small_plankton" type="real" default_value="0.67" units="1/(W/m^2)"
937+
<nml_option name="config_light_attenuation_small_plankton" type="real" default_value="0.2" units="1/(W/m^2)"
938938
description="Controls the ability of small plankton to utilize light"
939939
possible_values="positive real less than 1"
940940
icepack_name="alpha2max_low_sp"
941941
/>
942-
<nml_option name="config_light_attenuation_phaeocystis" type="real" default_value="0.67" units="1/(W/m^2)"
942+
<nml_option name="config_light_attenuation_phaeocystis" type="real" default_value="0.17" units="1/(W/m^2)"
943943
description="Controls the ability of phaeocystis to utilize light"
944944
possible_values="positive real less than 1"
945945
icepack_name="alpha2max_low_phaeo"
946946
/>
947-
<nml_option name="config_light_inhibition_diatoms" type="real" default_value="0.018" units="1/(W/m^2)"
947+
<nml_option name="config_light_inhibition_diatoms" type="real" default_value="0.001" units="1/(W/m^2)"
948948
description="Controls the strength of light inhibition to growth for diatoms"
949949
possible_values="positive real less than 1"
950950
icepack_name="beta2max_diatoms"
951951
/>
952-
<nml_option name="config_light_inhibition_small_plankton" type="real" default_value="0.0025" units="1/(W/m^2)"
952+
<nml_option name="config_light_inhibition_small_plankton" type="real" default_value="0.001" units="1/(W/m^2)"
953953
description="Controls the strength of light inhibition to growth for small plankton"
954954
possible_values="positive real less than 1"
955955
icepack_name="beta2max_sp"
956956
/>
957-
<nml_option name="config_light_inhibition_phaeocystis" type="real" default_value="0.01" units="1/(W/m^2)"
957+
<nml_option name="config_light_inhibition_phaeocystis" type="real" default_value="0.04" units="1/(W/m^2)"
958958
description="Controls the strength of light inhibition to growth for phaeocystis"
959959
possible_values="positive real less than 1"
960960
icepack_name="beta2max_phaeo"
@@ -964,12 +964,12 @@
964964
possible_values="positive real"
965965
icepack_name="mu_max_diatoms"
966966
/>
967-
<nml_option name="config_maximum_growth_rate_small_plankton" type="real" default_value="0.851" units="1/day"
967+
<nml_option name="config_maximum_growth_rate_small_plankton" type="real" default_value="0.41" units="1/day"
968968
description="Maximum growth rate for small plankton"
969969
possible_values="positive real"
970970
icepack_name="mu_max_sp"
971971
/>
972-
<nml_option name="config_maximum_growth_rate_phaeocystis" type="real" default_value="0.851" units="1/day"
972+
<nml_option name="config_maximum_growth_rate_phaeocystis" type="real" default_value="0.63" units="1/day"
973973
description="Maximum growth rate for phaeocystis"
974974
possible_values="positive real"
975975
icepack_name="mu_max_phaeo"
@@ -994,12 +994,12 @@
994994
possible_values="zero or positive real less than 1"
995995
icepack_name="fr_graze_diatoms"
996996
/>
997-
<nml_option name="config_grazed_fraction_small_plankton" type="real" default_value="0.1" units="unitless"
997+
<nml_option name="config_grazed_fraction_small_plankton" type="real" default_value="0.7" units="unitless"
998998
description="Fraction of small plankton biomass grazed"
999999
possible_values="zero or positive real less than 1"
10001000
icepack_name="fr_graze_sp"
10011001
/>
1002-
<nml_option name="config_grazed_fraction_phaeocystis" type="real" default_value="0.1" units="unitless"
1002+
<nml_option name="config_grazed_fraction_phaeocystis" type="real" default_value="0.7" units="unitless"
10031003
description="Fraction of phaeocystis biomass grazed"
10041004
possible_values="zero or positive real less than 1"
10051005
icepack_name="fr_graze_phaeo"
@@ -1179,12 +1179,12 @@
11791179
possible_values="zero or positive real less than 1"
11801180
icepack_name="fr_graze_e"
11811181
/>
1182-
<nml_option name="config_fraction_mortality_to_ammonium" type="real" default_value="0.5" units="unitless"
1182+
<nml_option name="config_fraction_mortality_to_ammonium" type="real" default_value="0.9" units="unitless"
11831183
description="Fraction of mortality to ammonium"
11841184
possible_values="zero or positive real less than 1"
11851185
icepack_name="fr_mort2min"
11861186
/>
1187-
<nml_option name="config_fraction_iron_remineralized" type="real" default_value="0.3" units="unitless"
1187+
<nml_option name="config_fraction_iron_remineralized" type="real" default_value="1.0" units="unitless"
11881188
description="Fraction of remineralized iron "
11891189
possible_values="zero or positive real less than or equal to 1"
11901190
icepack_name="fr_dFe"
@@ -1209,22 +1209,22 @@
12091209
possible_values="positive real"
12101210
icepack_name="max_dfe_doc1"
12111211
/>
1212-
<nml_option name="config_respiration_loss_to_DMSPd" type="real" default_value="0.75" units="unitless"
1212+
<nml_option name="config_respiration_loss_to_DMSPd" type="real" default_value="0.9" units="unitless"
12131213
description="Fraction of respiration loss as DMSPd"
12141214
possible_values="zero or positive real less than or equal to 1"
12151215
icepack_name="fr_resp_s"
12161216
/>
1217-
<nml_option name="config_DMSP_to_DMS_conversion_fraction" type="real" default_value="0.5" units="unitless"
1217+
<nml_option name="config_DMSP_to_DMS_conversion_fraction" type="real" default_value="0.7" units="unitless"
12181218
description="Fraction of conversion to DMS given high yield"
12191219
possible_values="zero or positive real less than or equal to 1"
12201220
icepack_name="y_sk_conv"
12211221
/>
1222-
<nml_option name="config_DMSP_to_DMS_conversion_time" type="real" default_value="3.0" units="day"
1222+
<nml_option name="config_DMSP_to_DMS_conversion_time" type="real" default_value="5.0" units="day"
12231223
description="Stefels conversion time"
12241224
possible_values="positive real"
12251225
icepack_name="t_sk_conv"
12261226
/>
1227-
<nml_option name="config_DMS_oxidation_time" type="real" default_value="10.0" units="day"
1227+
<nml_option name="config_DMS_oxidation_time" type="real" default_value="12.0" units="day"
12281228
description="DMS oxidation time"
12291229
possible_values="positive real"
12301230
icepack_name="t_sk_ox"
@@ -1234,12 +1234,12 @@
12341234
possible_values="-1 = entirely in the mobile phase; 0 = retention dominated; 1 = release dominated; 0.5 = equal but rapid exchange; 2 = equal but slow exchange"
12351235
icepack_name="algaltype_diatoms"
12361236
/>
1237-
<nml_option name="config_mobility_type_small_plankton" type="real" default_value="0.5" units="unitless"
1237+
<nml_option name="config_mobility_type_small_plankton" type="real" default_value="0.0" units="unitless"
12381238
description="Transport type of small plankton"
12391239
possible_values="-1 = entirely in the mobile phase; 0 = retention dominated; 1 = release dominated; 0.5 = equal but rapid exchange; 2 = equal but slow exchange"
12401240
icepack_name="algaltype_sp"
12411241
/>
1242-
<nml_option name="config_mobility_type_phaeocystis" type="real" default_value="0.5" units="unitless"
1242+
<nml_option name="config_mobility_type_phaeocystis" type="real" default_value="0.0" units="unitless"
12431243
description="Transport type of phaeocystis"
12441244
possible_values="-1 = entirely in the mobile phase; 0 = retention dominated; 1 = release dominated; 0.5 = equal but rapid exchange; 2 = equal but slow exchange"
12451245
icepack_name="algaltype_phaeo"
@@ -1249,7 +1249,7 @@
12491249
possible_values="-1 = entirely in the mobile phase; 0 = retention dominated; 1 = release dominated; 0.5 = equal but rapid exchange; 2 = equal but slow exchange"
12501250
icepack_name="nitratetype"
12511251
/>
1252-
<nml_option name="config_mobility_type_ammonium" type="real" default_value="1.0" units="unitless"
1252+
<nml_option name="config_mobility_type_ammonium" type="real" default_value="0.0" units="unitless"
12531253
description="Transport type of ammonium"
12541254
possible_values="-1 = entirely in the mobile phase; 0 = retention dominated; 1 = release dominated; 0.5 = equal but rapid exchange; 2 = equal but slow exchange"
12551255
icepack_name="ammoniumtype"
@@ -1264,32 +1264,32 @@
12641264
possible_values="-1 = entirely in the mobile phase; 0 = retention dominated; 1 = release dominated; 0.5 = equal but rapid exchange; 2 = equal but slow exchange"
12651265
icepack_name="dmspptype"
12661266
/>
1267-
<nml_option name="config_mobility_type_DMSPd" type="real" default_value="-1.0" units="unitless"
1267+
<nml_option name="config_mobility_type_DMSPd" type="real" default_value="0.0" units="unitless"
12681268
description="Transport type of dissolved DMSP"
12691269
possible_values="-1 = entirely in the mobile phase; 0 = retention dominated; 1 = release dominated; 0.5 = equal but rapid exchange; 2 = equal but slow exchange"
12701270
icepack_name="dmspdtye"
12711271
/>
1272-
<nml_option name="config_mobility_type_humics" type="real" default_value="1.0" units="unitless"
1272+
<nml_option name="config_mobility_type_humics" type="real" default_value="0.0" units="unitless"
12731273
description="Transport type of humics"
12741274
possible_values="-1 = entirely in the mobile phase; 0 = retention dominated; 1 = release dominated; 0.5 = equal but rapid exchange; 2 = equal but slow exchange"
12751275
icepack_name="humtypes"
12761276
/>
1277-
<nml_option name="config_mobility_type_saccharids" type="real" default_value="0.5" units="unitless"
1277+
<nml_option name="config_mobility_type_saccharids" type="real" default_value="0.0" units="unitless"
12781278
description="Transport type of poly/saccharids"
12791279
possible_values="-1 = entirely in the mobile phase; 0 = retention dominated; 1 = release dominated; 0.5 = equal but rapid exchange; 2 = equal but slow exchange"
12801280
icepack_name="doctype_s"
12811281
/>
1282-
<nml_option name="config_mobility_type_lipids" type="real" default_value="0.5" units="unitless"
1282+
<nml_option name="config_mobility_type_lipids" type="real" default_value="0.0" units="unitless"
12831283
description="Transport type of lipids"
12841284
possible_values="-1 = entirely in the mobile phase; 0 = retention dominated; 1 = release dominated; 0.5 = equal but rapid exchange; 2 = equal but slow exchange"
12851285
icepack_name="doctype_l"
12861286
/>
1287-
<nml_option name="config_mobility_type_proteins" type="real" default_value="0.5" units="unitless"
1287+
<nml_option name="config_mobility_type_proteins" type="real" default_value="0.0" units="unitless"
12881288
description="Transport type of proteins"
12891289
possible_values="-1 = entirely in the mobile phase; 0 = retention dominated; 1 = release dominated; 0.5 = equal but rapid exchange; 2 = equal but slow exchange"
12901290
icepack_name="dontype_protein"
12911291
/>
1292-
<nml_option name="config_mobility_type_dissolved_iron" type="real" default_value="0.5" units="unitless"
1292+
<nml_option name="config_mobility_type_dissolved_iron" type="real" default_value="0.0" units="unitless"
12931293
description="Transport type of dissolved iron"
12941294
possible_values="-1 = entirely in the mobile phase; 0 = retention dominated; 1 = release dominated; 0.5 = equal but rapid exchange; 2 = equal but slow exchange"
12951295
icepack_name="fedtype_1"
@@ -1299,32 +1299,32 @@
12991299
possible_values="-1 = entirely in the mobile phase; 0 = retention dominated; 1 = release dominated; 0.5 = equal but rapid exchange; 2 = equal but slow exchange"
13001300
icepack_name="feptype_1"
13011301
/>
1302-
<nml_option name="config_mobility_type_black_carbon1" type="real" default_value="1.0" units="unitless"
1302+
<nml_option name="config_mobility_type_black_carbon1" type="real" default_value="0.0" units="unitless"
13031303
description="Transport type of black carbon 1 pool"
13041304
possible_values="-1 = entirely in the mobile phase; 0 = retention dominated; 1 = release dominated; 0.5 = equal but rapid exchange; 2 = equal but slow exchange"
13051305
icepack_name="zaerotype_bc1"
13061306
/>
1307-
<nml_option name="config_mobility_type_black_carbon2" type="real" default_value="1.0" units="unitless"
1307+
<nml_option name="config_mobility_type_black_carbon2" type="real" default_value="0.0" units="unitless"
13081308
description="Transport type of black carbon 1 pool"
13091309
possible_values="-1 = entirely in the mobile phase; 0 = retention dominated; 1 = release dominated; 0.5 = equal but rapid exchange; 2 = equal but slow exchange"
13101310
icepack_name="zaerotype_bc2"
13111311
/>
1312-
<nml_option name="config_mobility_type_dust1" type="real" default_value="1.0" units="unitless"
1312+
<nml_option name="config_mobility_type_dust1" type="real" default_value="0.0" units="unitless"
13131313
description="Transport type of dust pool 1"
13141314
possible_values="-1 = entirely in the mobile phase; 0 = retention dominated; 1 = release dominated; 0.5 = equal but rapid exchange; 2 = equal but slow exchange"
13151315
icepack_name="zaerotype_dust1"
13161316
/>
1317-
<nml_option name="config_mobility_type_dust2" type="real" default_value="1.0" units="unitless"
1317+
<nml_option name="config_mobility_type_dust2" type="real" default_value="0.0" units="unitless"
13181318
description="Transport type of dust pool 2"
13191319
possible_values="-1 = entirely in the mobile phase; 0 = retention dominated; 1 = release dominated; 0.5 = equal but rapid exchange; 2 = equal but slow exchange"
13201320
icepack_name="zaerotype_dust2"
13211321
/>
1322-
<nml_option name="config_mobility_type_dust3" type="real" default_value="1.0" units="unitless"
1322+
<nml_option name="config_mobility_type_dust3" type="real" default_value="0.0" units="unitless"
13231323
description="Transport type of dust pool 3"
13241324
possible_values="-1 = entirely in the mobile phase; 0 = retention dominated; 1 = release dominated; 0.5 = equal but rapid exchange; 2 = equal but slow exchange"
13251325
icepack_name="zaerotype_dust3"
13261326
/>
1327-
<nml_option name="config_mobility_type_dust4" type="real" default_value="1.0" units="unitless"
1327+
<nml_option name="config_mobility_type_dust4" type="real" default_value="0.0" units="unitless"
13281328
description="Transport type of dust pool 4"
13291329
possible_values="-1 = entirely in the mobile phase; 0 = retention dominated; 1 = release dominated; 0.5 = equal but rapid exchange; 2 = equal but slow exchange"
13301330
icepack_name="zaerotype_dust4"

src/core_seaice/column/ice_algae.F90

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,7 @@ subroutine z_biogeochemistry (n_cat, dt, &
12781278
call add_warning(warning)
12791279
write(warning,*)'Category,mm:',n_cat,mm
12801280
call add_warning(warning)
1281-
l_stop = .true.
1281+
! l_stop = .true.
12821282
stop_label = 'zbgc FCT tracer solution failed'
12831283
endif
12841284
if (l_stop) return
@@ -1351,7 +1351,7 @@ subroutine z_biogeochemistry (n_cat, dt, &
13511351
call add_warning(warning)
13521352
write(warning, *) react(k,m),iphin_N(k),biomat_brine(k,m)
13531353
call add_warning(warning)
1354-
l_stop = .true.
1354+
! l_stop = .true.
13551355
stop_label = 'very large bgc value'
13561356
elseif (bio_tmp < c0) then
13571357
write(warning, *) 'negative bgc'
@@ -2036,7 +2036,8 @@ subroutine algal_dyn (dt, &
20362036
enddo
20372037
endif
20382038
endif !Docin(1) > c0
2039-
elseif (tr_bgc_Fe) then
2039+
endif
2040+
if (tr_bgc_Fe) then
20402041
do n = 1,n_fed
20412042
Fed_r(n) = Fed_r(n) + rFed(n)*Fed_tot_r ! scavenging + uptake
20422043
enddo

testing_and_setup/seaice/configurations/standard_bgc/namelist.seaice

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
config_use_vertical_tracers = true
118118
config_use_skeletal_biochemistry = false
119119
config_use_nitrate = true
120-
config_use_carbon = true
120+
config_use_carbon = false
121121
config_use_chlorophyll = false
122122
config_use_ammonium = true
123123
config_use_silicate = true

testing_and_setup/seaice/testing/tests/restartability.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,18 @@ def restartability(mpasDevelopmentDir, domainsDir, domain, configuration, option
5959
# restart
6060
nProcs = 32
6161

62-
nmlChanges = {"seaice_model": {"config_start_time":"file"},
63-
"restart": {"config_do_restart":True}}
62+
bgcRestart = False
63+
if ("bgc" in options.keys() and options["bgc"] == "True"):
64+
bgcRestart = True
65+
66+
if (not bgcRestart):
67+
nmlChanges = {"seaice_model": {"config_start_time":"file"},
68+
"restart": {"config_do_restart":True}}
69+
else:
70+
nmlChanges = {"seaice_model": {"config_start_time":"file"},
71+
"restart": {"config_do_restart":True,
72+
"config_do_restart_bgc":True,
73+
"config_do_restart_hbrine":True}}
6474
if (check):
6575
nmlChanges["unit_test"] = {"config_testing_system_test":True}
6676

testing_and_setup/seaice/testing/testsuites/testsuite.standard_bgc.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
<domain name="domain_QU240km">
55
<test name="regression"/>
66
<test name="parallelism"/>
7-
<test name="restartability"/>
7+
<test name="restartability">
8+
<option name="bgc" value="True"/>
9+
</test>
810
</domain>
911
</configuration>
1012
</testsuite>

0 commit comments

Comments
 (0)