Skip to content
Merged
12 changes: 8 additions & 4 deletions bld/CLMBuildNamelist.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3740,8 +3740,12 @@ sub setup_logic_c_isotope {
#
my ($opts, $nl_flags, $definition, $defaults, $nl) = @_;

add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'use_c13', 'bgc_mode'=>$nl_flags->{'bgc_mode'}, 'phys'=>$nl_flags->{'phys'});
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'use_c14', 'bgc_mode'=>$nl_flags->{'bgc_mode'}, 'phys'=>$nl_flags->{'phys'});
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'use_c13',
'bgc_mode'=>$nl_flags->{'bgc_mode'}, 'phys'=>$nl_flags->{'phys'},
'lnd_tuning_mode'=>$nl_flags->{'lnd_tuning_mode'}, ssp_rcp=>$nl_flags->{'ssp_rcp'} );
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'use_c14',
'bgc_mode'=>$nl_flags->{'bgc_mode'}, 'phys'=>$nl_flags->{'phys'},
'lnd_tuning_mode'=>$nl_flags->{'lnd_tuning_mode'}, ssp_rcp=>$nl_flags->{'ssp_rcp'} );
my $use_c13 = $nl->get_value('use_c13');
my $use_c14 = $nl->get_value('use_c14');
if ( $nl_flags->{'bgc_mode'} ne "sp" && $nl_flags->{'bgc_mode'} ne "fates" ) {
Expand All @@ -3754,7 +3758,7 @@ sub setup_logic_c_isotope {
}
}
if ( &value_is_true($use_c14) ) {
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'use_c14_bombspike', 'bgc_mode'=>$nl_flags->{'bgc_mode'}, 'phys'=>$nl_flags->{'phys'});
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'use_c14_bombspike', 'use_c14'=>$use_c14 );
my $use_c14_bombspike = $nl->get_value('use_c14_bombspike');
if ( &value_is_true($use_c14_bombspike) ) {
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'atm_c14_filename',
Expand All @@ -3768,7 +3772,7 @@ sub setup_logic_c_isotope {
}
}
if ( &value_is_true($use_c13) ) {
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'use_c13_timeseries', 'bgc_mode'=>$nl_flags->{'bgc_mode'}, 'phys'=>$nl_flags->{'phys'});
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'use_c13_timeseries', 'use_c13'=>$use_c13 );
my $use_c13_timeseries = $nl->get_value('use_c13_timeseries');
if ( &value_is_true($use_c13_timeseries) ) {
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'atm_c13_filename',
Expand Down
14 changes: 10 additions & 4 deletions bld/namelist_files/namelist_defaults_ctsm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,15 @@ attributes from the config_cache.xml file (with keys converted to upper-case).
<use_c14>.false.</use_c14>
<use_c13_timeseries>.false.</use_c13_timeseries>
<use_c14_bombspike>.false.</use_c14_bombspike>
<!-- Turn timeseries on if Carbon isotopes are on -->
<use_c13_timeseries use_c13=".true.">.true.</use_c13_timeseries>
<use_c14_bombspike use_c14=".true.">.true.</use_c14_bombspike>

<use_c13 phys="clm6_0" bgc_mode="bgc" >.true.</use_c13>
<use_c14 phys="clm6_0" bgc_mode="bgc" >.true.</use_c14>
<use_c13_timeseries phys="clm6_0" bgc_mode="bgc" >.true.</use_c13_timeseries>
<use_c14_bombspike phys="clm6_0" bgc_mode="bgc" >.true.</use_c14_bombspike>
<!-- Turn Carbon isotopes on for clm6_0 physics with BGC on with CRUJRA or CAM7 forcing and for historical period-->
<use_c13 phys="clm6_0" bgc_mode="bgc" lnd_tuning_mode="clm6_0_CRUJRA2024" ssp_rcp="hist">.true.</use_c13>
<use_c14 phys="clm6_0" bgc_mode="bgc" lnd_tuning_mode="clm6_0_CRUJRA2024" ssp_rcp="hist">.true.</use_c14>
<use_c13 phys="clm6_0" bgc_mode="bgc" lnd_tuning_mode="clm6_0_cam7.0" ssp_rcp="hist">.true.</use_c13>
<use_c14 phys="clm6_0" bgc_mode="bgc" lnd_tuning_mode="clm6_0_cam7.0" ssp_rcp="hist">.true.</use_c14>

<!-- Carbon isotope concentration files -->
<atm_c13_filename use_c13=".true." use_c13_timeseries=".true." ssp_rcp="hist" >lnd/clm2/isotopes/atm_delta_C13_CMIP6_1850-2015_yearly_v2.0_c190528.nc</atm_c13_filename>
Expand All @@ -141,7 +145,9 @@ attributes from the config_cache.xml file (with keys converted to upper-case).
<!-- Irrigation default (Note, the use-cases also set this) -->
<irrigate >.false.</irrigate>
<irrigate use_cndv=".false." sim_year_range="1850-2100">.true.</irrigate>
<irrigate phys="clm6_0" use_cndv=".false." sim_year_range="1850-2000">.true.</irrigate>
<irrigate phys="clm4_5" use_cndv=".false." sim_year_range="1850-2100">.false.</irrigate>
<irrigate phys="clm4_5" use_cndv=".false." sim_year_range="1850-2000">.false.</irrigate>

<!-- Saturation excess runoff for crops -->
<crop_fsat_equals_zero>.false.</crop_fsat_equals_zero>
Expand Down