Skip to content

Commit

Permalink
Add use_aerocom namelist variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Goldhaber committed Aug 28, 2024
1 parent 9090066 commit 5fe9c73
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
1 change: 1 addition & 0 deletions bld/build-namelist
Original file line number Diff line number Diff line change
Expand Up @@ -3136,6 +3136,7 @@ if ($simple_phys) {$use_simple_phys = '.true.';}
$nl->set_variable_value('phys_ctl_nl', 'use_simple_phys', $use_simple_phys);

#Cam-Oslo options
add_default($nl, 'use_aerocom');
add_default($nl, 'volc_fraction_coarse');
add_default($nl, 'aerotab_table_dir');
add_default($nl, 'ocean_filepath');
Expand Down
10 changes: 0 additions & 10 deletions bld/configure
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ OPTIONS
Options used to determine the CAM model configuration. These options will have an
effect whether running CAM from CESM scripts or running via CAM standalone scripts:
-aerocom Enable AEROCOM cpp-def for OSLO_AERO
-[no]age_of_air_trcs Switch on [off] age of air tracers. Default: on for waccm_phys, otherwise off.
-analytic_ic Enables the (namelist controlled) dycore testing infrastructure
-aquaplanet Switch on aqua-planet mode.
Expand Down Expand Up @@ -233,7 +232,6 @@ my %opts = (
cache => "config_cache.xml",
);
GetOptions(
"aerocom!" => \$opts{'aerocom'},
"age_of_air_trcs!" => \$opts{'age_of_air_trcs'},
"analytic_ic" => \$opts{'analytic_ic'},
"aquaplanet" => \$opts{'aquaplanet'},
Expand Down Expand Up @@ -1969,14 +1967,6 @@ if ($silhs == 1) {
# Simple Models
if ($simple_phys) { $cfg_cppdefs .= ' -DSIMPLE'; }

# Turn on aerocom
my $aerocom_opt = (defined $opts{'aerocom'}) ? 1 : 0;
$cfg_ref->set('aerocom', $aerocom_opt);
my $aerocom = $cfg_ref->get('aerocom');
if ($aerocom eq 1) {
$cfg_cppdefs .= ' -DAEROCOM';
}

# UNICON
if ($unicon) { $cfg_cppdefs .= ' -DUSE_UNICON'; }

Expand Down
1 change: 1 addition & 0 deletions bld/namelist_files/namelist_defaults_cam.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3531,6 +3531,7 @@
<hemco_grid_ydim hgrid="1.9x2.5">91</hemco_grid_ydim>

<!-- CAM-Oslo variables -->
<use_aerocom>.false.</use_aerocom>
<dme_energy_adjust>.true.</dme_energy_adjust>
<volc_fraction_coarse >0.0</volc_fraction_coarse>
<aerotab_table_dir>noresm-only/atm/cam/camoslo/AeroTab_8jun17/</aerotab_table_dir>
Expand Down
7 changes: 7 additions & 0 deletions bld/namelist_files/namelist_definition.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9567,11 +9567,18 @@ Simulation year that aligns with stream_year_first_ndep value
<!-- Oslo-Aero variables -->
<!-- ======================================================================================== -->

<entry id="use_aerocom" type="logical" category="cam_oslo"
group="oslo_ctl_nl" valid_values="" >
If true, turn on aerocom output
Default: false
</entry>

<entry id="volc_fraction_coarse" type="real" category="cam_oslo"
group="oslo_ctl_nl" valid_values="" >
Fraction of volcanic aerosols which will end up in coarse mode
Default: 0.0
</entry>

<entry id="aerotab_table_dir" type="char*256" input_pathname="abs" category="cam_oslo"
group="oslo_ctl_nl" valid_values="" >
Directory where we will expect to find the CAM-Oslo tables
Expand Down

0 comments on commit 5fe9c73

Please sign in to comment.