Skip to content

Commit a56fc0b

Browse files
committed
merge to head of cam development
2 parents 068ebc6 + b90429e commit a56fc0b

File tree

119 files changed

+7819
-2646
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+7819
-2646
lines changed

.gitmodules

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
path = src/physics/carma/base
1010
url = https://github.com/ESCOMP/CARMA_base.git
1111
fxrequired = AlwaysRequired
12-
fxtag = carma4_01
12+
fxtag = carma4_09
1313
fxDONOTUSEurl = https://github.com/ESCOMP/CARMA_base.git
1414

1515
[submodule "pumas"]
@@ -186,7 +186,7 @@ fxDONOTUSEurl = https://github.com/NCAR/ParallelIO
186186
[submodule "cice"]
187187
path = components/cice
188188
url = https://github.com/ESCOMP/CESM_CICE
189-
fxtag = cesm_cice6_6_0_6
189+
fxtag = cesm3_cice6_6_0_6
190190
fxrequired = ToplevelRequired
191191
fxDONOTUSEurl = https://github.com/ESCOMP/CESM_CICE
192192

CODE_OF_CONDUCT.md

-84
This file was deleted.

bld/build-namelist

+35-14
Original file line numberDiff line numberDiff line change
@@ -509,14 +509,6 @@ if ($phys_mode_flags > 1) {
509509
my $simple_phys = 0;
510510
if ($adia_mode or $ideal_mode) { $simple_phys = 1; }
511511

512-
# If running either a simple physics or an aquaplanet configuration, the nitrogen
513-
# deposition data is not used. These files are set in buildnml and can't be overridden
514-
# via user_nl_cam. So provide an override here.
515-
if ($simple_phys or $aqua_mode) {
516-
$nl->set_variable_value('ndep_stream_nl', 'stream_ndep_data_filename', '" "');
517-
$nl->set_variable_value('ndep_stream_nl', 'stream_ndep_mesh_filename', '" "');
518-
}
519-
520512
# Single column mode
521513
my $scam = $cfg->get('scam');
522514
my $scam_iop = $cfg->get('scam_iop');
@@ -705,6 +697,19 @@ if ($sim_year =~ /(\d+)-(\d+)/) {
705697
$sim_year_start = $1;
706698
}
707699

700+
# Setup default ndep streams only if not simple_phys or aqua_mode and
701+
# the chemistry cannot produce the nitrogen depostion fluxes
702+
if (!($simple_phys or $aqua_mode)) {
703+
my $chem_nitrodep = chem_has_species($cfg, 'NO') and chem_has_species($cfg, 'NH3');
704+
if ((!$chem_nitrodep) or ($chem =~ /geoschem/)) {
705+
add_default($nl, 'stream_ndep_mesh_filename');
706+
add_default($nl, 'stream_ndep_data_filename', 'sim_year'=>$sim_year);
707+
add_default($nl, 'stream_ndep_year_first', 'sim_year'=>$sim_year);
708+
add_default($nl, 'stream_ndep_year_last', 'sim_year'=>$sim_year);
709+
add_default($nl, 'stream_ndep_year_align', 'sim_year'=>$sim_year);
710+
}
711+
}
712+
708713
# Topography
709714
add_default($nl, 'use_topo_file');
710715
my $use_topo_file = $nl->get_value('use_topo_file');
@@ -755,11 +760,9 @@ if ($rad_pkg =~ /rrtmg/ or $chem =~ /waccm/) {
755760
# use solar data file as the default for rrtmg and waccm_ma
756761
add_default($nl, 'solar_irrad_data_file');
757762

758-
# This option only used by camrt and rrtmg radiation schemes.
759-
# The solar spectral scaling is done internal to RRTMGP code.
760-
if ($rad_pkg ne 'rrtmgp') {
761-
add_default($nl, 'solar_htng_spctrl_scl', 'val'=>'.true.');
762-
}
763+
# The solar spectral scaling is done based on the distribution from
764+
# the solar_irrad_data_file.
765+
add_default($nl, 'solar_htng_spctrl_scl', 'val'=>'.true.');
763766

764767
}
765768
elsif (!$simple_phys) {
@@ -1268,6 +1271,7 @@ if ($carma ne 'none') {
12681271
add_default($nl, 'carma_model', 'val'=>$carma);
12691272
add_default($nl, 'carma_flag', 'val'=>'.true.');
12701273
add_default($nl, 'history_carma', 'val'=>'.true.');
1274+
add_default($nl, 'carma_sulfnuc_method','val'=>'ZhaoTurco');
12711275
}
12721276
if ($carma eq 'bc_strat') {
12731277
add_default($nl, 'carma_do_drydep', 'val'=>'.true.');
@@ -1587,7 +1591,7 @@ if (defined $nl->get_value('prescribed_strataero_3modes')) {
15871591

15881592
# determine if prescribed stratospheric aerosol data is needed
15891593
if ( ($het_chem) || ($nl->get_value('prescribed_strataero_feedback') =~ /$TRUE/io ) ){
1590-
if ( ($carma ne 'sulfate') && !($nl->get_value('modal_strat_sulfate') =~ /$TRUE/io) ) { # if no prognostic stratospheric aerosols
1594+
if ( !($nl->get_value('modal_strat_sulfate') =~ /$TRUE/io) ) { # if no prognostic stratospheric aerosols
15911595

15921596
unless (defined $nl->get_value('prescribed_strataero_type')) {
15931597
add_default($nl, 'prescribed_strataero_type','val'=>'CYCLICAL');
@@ -3771,6 +3775,14 @@ if (!$simple_phys) {
37713775
add_default($nl, 'use_gw_movmtn_pbl', 'val'=>'.true.');
37723776
}
37733777

3778+
my $use_gw_movmtn_pbl = $nl->get_value('use_gw_movmtn_pbl');
3779+
if ($use_gw_movmtn_pbl =~ /$TRUE/io) {
3780+
if ( ! ($dyn =~ /se/) ) {
3781+
die "$ProgName - ERROR: use_gw_movmtn_pbl is only available with the SE dycore \n";
3782+
3783+
}
3784+
}
3785+
37743786
add_default($nl, 'use_gw_rdg_gamma' , 'val'=>'.false.');
37753787
add_default($nl, 'use_gw_front_igw' , 'val'=>'.false.');
37763788
add_default($nl, 'use_gw_convect_sh', 'val'=>'.false.');
@@ -3832,6 +3844,7 @@ my $do_gw_convect_sh = ($nl->get_value('use_gw_convect_sh') =~ /$TRUE/io);
38323844
my $do_gw_movmtn_pbl = ($nl->get_value('use_gw_movmtn_pbl') =~ /$TRUE/io);
38333845
my $do_gw_rdg_beta = ($nl->get_value('use_gw_rdg_beta') =~ /$TRUE/io);
38343846
my $do_gw_rdg_gamma = ($nl->get_value('use_gw_rdg_gamma') =~ /$TRUE/io);
3847+
my $do_gw_rdg_resid = ($nl->get_value('use_gw_rdg_resid') =~ /$TRUE/io);
38353848

38363849
my $do_divstream = ($nl->get_value('gw_rdg_do_divstream') =~ /$TRUE/io);
38373850

@@ -3886,6 +3899,10 @@ if ($do_gw_convect_sh) {
38863899
if ($do_gw_movmtn_pbl) {
38873900
add_default($nl, 'gw_drag_file_mm');
38883901
add_default($nl, 'alpha_gw_movmtn');
3902+
add_default($nl, 'effgw_movmtn_pbl');
3903+
add_default($nl, 'movmtn_source');
3904+
add_default($nl, 'movmtn_psteer');
3905+
add_default($nl, 'movmtn_plaunch');
38893906
}
38903907

38913908
if ($do_gw_rdg_beta) {
@@ -3905,6 +3922,10 @@ if ($do_gw_rdg_beta) {
39053922
add_default($nl, 'gw_prndl');
39063923
}
39073924

3925+
if ($do_gw_rdg_resid) {
3926+
add_default($nl, 'effgw_rdg_resid' );
3927+
}
3928+
39083929
if ($do_gw_rdg_gamma) {
39093930
add_default($nl, 'n_rdg_gamma', 'val'=>'-1');
39103931
add_default($nl, 'effgw_rdg_gamma', 'val'=>'1.0D0');

0 commit comments

Comments
 (0)