Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

noresm2_3_develop : Introduction of possibility to run with full atmospheric chemistry #149

Merged
merged 18 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
0e588fb
modified Externals_CAM.cfg to point to noresm2_3_chem branch in fork
DirkOlivie Mar 19, 2024
be390f3
modifications to have tropstrat_mam_oslo chemistry scheme
DirkOlivie Apr 23, 2024
56ab17d
modified .gitignore to exclude cime_config/__pycache__/*pyc files
DirkOlivie Apr 23, 2024
a37c6af
bringing full-chemistry implementation up-to-date with parallel devel…
DirkOlivie May 3, 2024
7b94d44
modified lightning NOx emission tuning factor in namelist (increase f…
DirkOlivie May 28, 2024
7dac131
modified Externals_CAM.cfg to point to NorESMhub
DirkOlivie May 28, 2024
d29d56e
correction for NF1850norbc_tropstratchem to use correct correct use c…
DirkOlivie May 30, 2024
df7efcb
add test for NF1850norbc_tropstratchem
DirkOlivie May 30, 2024
e179967
Merge branch 'noresm2_3_chem' into PR_fullchem
DirkOlivie May 30, 2024
58805de
modified repo_url for OSLO_AERO in Externals_CAM.cfg : points to gith…
DirkOlivie May 31, 2024
b7cbc94
co2_cycle set back to standard in config_component.xml
DirkOlivie Aug 23, 2024
8fdff56
Merge branch 'noresm2_3_chem' into PR_fullchem
DirkOlivie Aug 23, 2024
e83a5fd
added comment for use_case ssp370_cam6_noresm_tropstratchem.xml that …
DirkOlivie Aug 23, 2024
3da1b89
Merge branch 'noresm2_3_chem' into PR_fullchem
DirkOlivie Aug 23, 2024
78fb498
Merge remote-tracking branch 'NorESMhub/noresm2_3_develop' into nores…
DirkOlivie Sep 17, 2024
f604984
Merge branch 'noresm2_3_chem' into PR_fullchem
DirkOlivie Sep 17, 2024
c958b5e
Externals_CAM.cfg for OSLO_AERO pointing to correct repo and tag
DirkOlivie Sep 17, 2024
7ef6b68
updated tag for OSLO_AERO to oslo_aero_2_3a2 in Externals_CAM.cfg
DirkOlivie Sep 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ buildcppc
.#*
\#*#
*.swp

# To avoid *.pyc files
cime_config/__pycache__
54 changes: 37 additions & 17 deletions bld/build-namelist
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ my $rad_prog_bcarb = (($prog_species =~ "BC" or $aero_chem) and !($chem_rad_pa
my $rad_prog_sulf = (($prog_species =~ "SO4" or $aero_chem) and !($chem_rad_passive));
my $rad_prog_dust = (($prog_species =~ "DST" or $aero_chem) and !($chem_rad_passive));
my $rad_prog_sslt = (($prog_species =~ "SSLT" or $aero_chem) and !($chem_rad_passive));
my $rad_prog_ozone = (($chem =~ "mozart" or $chem =~ "waccm_ma" or $chem =~ "tsmlt" or $chem =~ "trop_strat") and !($chem_rad_passive));
my $rad_prog_ozone = (($chem =~ "mozart" or $chem =~ "waccm_ma" or $chem =~ "tsmlt" or $chem =~ "trop_strat" or $chem =~"tropstrat_mam_oslo") and !($chem_rad_passive));

# Check for eruptive volcano emissions. These will be radiatively active by default, but
# only if using BAM and the camrt radiation package
Expand Down Expand Up @@ -1658,7 +1658,7 @@ elsif ($carma eq 'tholin') {
# turn on stratospheric aerosol forcings in CAM6 configurations
my $chem_has_ocs = chem_has_species($cfg, 'OCS');
# djlo
if ($phys =~ /cam6/ and $chem ne 'trop_mam_oslo') {
if ($phys =~ /cam6/ and $chem ne 'trop_mam_oslo' and $chem ne 'tropstrat_mam_oslo') {
# turn on volc forcings in cam6 -- prognostic or prescribed
if ( $chem_has_ocs ) {
# turn on prognostic stratospheric aerosols
Expand Down Expand Up @@ -2232,7 +2232,7 @@ if ($chem eq 'trop_mam3') {
}
}

if ($chem eq 'trop_mam_oslo' ) {
if ($chem eq 'trop_mam_oslo' or $chem eq 'tropstrat_mam_oslo') {

my %species;

Expand Down Expand Up @@ -2296,26 +2296,41 @@ if ($chem eq 'trop_mam_oslo' ) {
}

# Prescribed species
add_default($nl, 'tracer_cnst_specifier', 'val'=>"'O3','OH','NO3','HO2'");
unless (defined $nl->get_value('tracer_cnst_type')) {
add_default($nl, 'tracer_cnst_type', 'ver'=>'fixed_ox');
add_default($nl, 'tracer_cnst_cycle_yr','ver'=>'fixed_ox');
}
if ($chem eq 'trop_mam_oslo') {
add_default($nl, 'tracer_cnst_specifier', 'val'=>"'O3','OH','NO3','HO2'");
unless (defined $nl->get_value('tracer_cnst_type')) {
add_default($nl, 'tracer_cnst_type', 'ver'=>'fixed_ox');
add_default($nl, 'tracer_cnst_cycle_yr','ver'=>'fixed_ox');
}

my @files = ('tracer_cnst_datapath', 'tracer_cnst_file', 'tracer_cnst_filelist');
foreach my $file (@files) {
add_default($nl, $file, 'ver'=>'fixed_ox');
my @files = ('tracer_cnst_datapath', 'tracer_cnst_file', 'tracer_cnst_filelist');
foreach my $file (@files) {
add_default($nl, $file, 'ver'=>'fixed_ox');
}
}

add_default($nl, 'fstrat_list', 'val'=>"' '");
if ($chem eq 'trop_mam_oslo') {add_default($nl, 'fstrat_list', 'val'=>"' '")};
add_default($nl, 'flbc_list', 'val'=>"' '");
add_default($nl, 'xactive_prates', 'val'=>'.false.');
if ($chem eq 'trop_mam_oslo') {add_default($nl, 'xactive_prates', 'val'=>'.false.')};

# Datasets
my @files = ('soil_erod_file',
'xs_long_file', 'rsf_file', 'exo_coldens_file' );
foreach my $file (@files) {
add_default($nl, $file);
if ($chem eq 'trop_mam_oslo') {

my @files = ('soil_erod_file',
'xs_long_file', 'rsf_file', 'exo_coldens_file' );
foreach my $file (@files) {
add_default($nl, $file);
}
}
if ($chem eq 'tropstrat_mam_oslo') {

my @files = ('soil_erod_file',
# 'xs_long_file', 'rsf_file', 'exo_coldens_file' );
# 'xs_long_file', 'xs_short_file', 'xs_coef_file', 'rsf_file', 'exo_coldens_file' );
'xs_long_file', 'xs_short_file', 'xs_coef_file', 'rsf_file' );
foreach my $file (@files) {
add_default($nl, $file);
}
}
}

Expand Down Expand Up @@ -3309,6 +3324,11 @@ if ( length($nl->get_value('soil_erod_file'))>0 ) {
# set scaling of lightning NOx production
add_default($nl, 'lght_no_prd_factor' );
}
elsif ($chem =~ /tropstrat/) {
add_default($nl, 'dust_emis_fact');
# set scaling of lightning NOx production
add_default($nl, 'lght_no_prd_factor' );
}
else {
add_default($nl, 'dust_emis_fact');
}
Expand Down
4 changes: 2 additions & 2 deletions bld/config_files/definition.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ meteor_smoke (Meteor Smoke), mixed_sulfate (Meteor Smoke and Sulfate), pmc (Pola
sulfate (Sulfate Aerosols), tholin (early earth haze), test_detrain (Detrainment), test_growth (Particle Growth), test_passive (Passive Dust),
test_radiative (Radiatively Active Dust), test_swelling (Sea Salt), test_tracers (Asian Monsoon), test_tracers2 (Guam).
</entry>
<entry id="chem" valid_values="trop_mam3,trop_mam4,trop_mam7,trop_mozart,trop_strat_mam4_vbs,trop_strat_mam4_vbsext,waccm_ma,waccm_mad,waccm_mad_mam4,waccm_ma_mam4,waccm_ma_sulfur,waccm_sc,waccm_sc_mam4,waccm_tsmlt_mam4,terminator,trop_mam_oslo,none" value="">
Chemistry package: trop_mam3 trop_mam4 trop_mam7 trop_mozart trop_strat_mam4_vbs trop_strat_mam4_vbsext waccm_ma waccm_mad waccm_mad_mam4 waccm_ma_mam4 waccm_ma_sulfur waccm_sc waccm_sc_mam4 waccm_tsmlt_mam4 terminator trop_mam_oslo none
<entry id="chem" valid_values="trop_mam3,trop_mam4,trop_mam7,trop_mozart,trop_strat_mam4_vbs,trop_strat_mam4_vbsext,waccm_ma,waccm_mad,waccm_mad_mam4,waccm_ma_mam4,waccm_ma_sulfur,waccm_sc,waccm_sc_mam4,waccm_tsmlt_mam4,terminator,trop_mam_oslo,tropstrat_mam_oslo,none" value="">
Chemistry package: trop_mam3 trop_mam4 trop_mam7 trop_mozart trop_strat_mam4_vbs trop_strat_mam4_vbsext waccm_ma waccm_mad waccm_mad_mam4 waccm_ma_mam4 waccm_ma_sulfur waccm_sc waccm_sc_mam4 waccm_tsmlt_mam4 terminator trop_mam_oslo tropstrat_mam_oslo none
</entry>
<entry id="prog_species" valid_values="DST,SSLT,SO4,GHG,OC,BC,CARBON16" value="" list="1">
Prognostic mozart species packages: list of any subset of the following: DST,SSLT,SO4,GHG,OC,BC,CARBON16
Expand Down
2 changes: 1 addition & 1 deletion bld/configure
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ OPTIONS
[ trop_mam3 | trop_mam4 | trop_mam7 | trop_mozart | trop_strat_mam4_vbs | trop_strat_mam4_vbsext |
waccm_ma | waccm_mad | waccm_mad_mam4 | waccm_ma_mam4 |
waccm_ma_sulfur | waccm_sc | waccm_sc_mam4 | waccm_tsmlt_mam4 |
terminator | trop_mam_oslo | none ].
terminator | trop_mam_oslo | tropstrat_mam_oslo | none ].
Default: trop_mam_oslo when -camnor is specified
Default: trop_mam4 for cam6 and trop_mam3 for cam5.
-[no]clubb_sgs Switch on [off] CLUBB_SGS. Default: on for cam6, otherwise off.
Expand Down
Loading