You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An attempt to turn on use_fun with clm4.5 leads to the following error:
ERROR : CLM build-namelist::CLMBuildNamelist::add_default() : No default value found for br_root.
Are defaults provided for this resolution and land mask?
General bug information
CTSM version you are using: ctsm1.0.dev080
Does this bug cause significantly incorrect results in the model's science? No
Configurations affected: clm4.5 with FUN
Details of bug
It appears that the namelist_defaults for br_root are too specific: they have a default specified for phys="clm5_0" use_cn=".true." use_fun=".true.", but it's allowable to turn on use_fun even with clm4.5. There is already logic in CLMBuildNamelist that prevents setting br_root without use_fun, and there doesn't seem to be any purpose to having these attributes in namelist_defaults, so I propose simplifying namelist_defauts to:
diff --git a/bld/namelist_files/namelist_defaults_ctsm.xml b/bld/namelist_files/namelist_defaults_ctsm.xml
index a32c807f..ceaeba09 100644
--- a/bld/namelist_files/namelist_defaults_ctsm.xml+++ b/bld/namelist_files/namelist_defaults_ctsm.xml@@ -954,7 +954,7 @@ lnd/clm2/surfdata_map/surfdata_ne120np4_78pfts_CMIP6_simyr1850_c170824.nc</fsurd
<use_fun phys="clm5_0" use_cn=".true." use_nitrif_denitrif=".true.">.true.</use_fun>
<use_fun >.false.</use_fun>
-<br_root phys="clm5_0" use_cn=".true." use_fun=".true.">0.83d-06</br_root>+<br_root>0.83d-06</br_root>
<!-- Scalar of leaf respiration to vcmax (used for SP mode and with luna)-->
<leaf_mr_vcm phys="clm5_0" >0.015d00</leaf_mr_vcm>
However, from talking with @wwieder , you should only be allowed to turn on use_fun if you are also using FlexCN. I don't think CLMBuildNamelist checks for this right now, but it should. (Update: I have opened #886 for this other issue.)
The text was updated successfully, but these errors were encountered:
Some BFB Fixes: Resolve issues #683, # 874, #878, # 885, # 745, #838
Resolved issues:
#683 : Writing out FATES parameters only on masterproc.
#874 : Changing the number of timesteps to run for
SMS_P720x1_Ln3.hcru_hcru.I2000Clm50BgcCruGs.cheyenne_intel.clm-coldStart
to prevent failing with CMEPS.
#878 : Removing the unused atm2lnd field.
#885 : Changing the defaults for br_root in namelist_defaults to
enable FUN with CLM4.5.
#745 : Removing ReadNL private subroutine from initVerticalMod.F90.
#838 : Clarifying ZISNO in the variable long name.
Brief summary of bug
An attempt to turn on
use_fun
with clm4.5 leads to the following error:General bug information
CTSM version you are using: ctsm1.0.dev080
Does this bug cause significantly incorrect results in the model's science? No
Configurations affected: clm4.5 with FUN
Details of bug
It appears that the
namelist_defaults
forbr_root
are too specific: they have a default specified forphys="clm5_0" use_cn=".true." use_fun=".true."
, but it's allowable to turn onuse_fun
even with clm4.5. There is already logic in CLMBuildNamelist that prevents settingbr_root
withoutuse_fun
, and there doesn't seem to be any purpose to having these attributes innamelist_defaults
, so I propose simplifyingnamelist_defauts
to:However, from talking with @wwieder , you should only be allowed to turn on
use_fun
if you are also using FlexCN. I don't think CLMBuildNamelist checks for this right now, but it should. (Update: I have opened #886 for this other issue.)The text was updated successfully, but these errors were encountered: