Skip to content

Commit

Permalink
Get settings of ncrit, cnegcrit, and nnegcrit working, fixing ESMCI#66
Browse files Browse the repository at this point in the history
  • Loading branch information
ekluzek committed Feb 23, 2018
1 parent 3144919 commit 0e6557b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bld/CLMBuildNamelist.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2105,7 +2105,7 @@ sub setup_logic_cnfire {
sub setup_logic_cnprec {
my ($opts, $nl_flags, $definition, $defaults, $nl, $physv) = @_;

if ( $physv->as_long() >= $physv->as_long("clm5_0") && &value_is_true($nl->get_value('use_cn')) ) {
if ( $physv->as_long() >= $physv->as_long("clm4_5") && &value_is_true($nl_flags->{'use_cn'}) ) {
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults,
$nl, 'ncrit', 'use_cn'=>$nl_flags->{'use_cn'});
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults,
Expand Down
1 change: 1 addition & 0 deletions bld/namelist_files/namelist_defaults_clm4_5.xml
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ attributes from the config_cache.xml file (with keys converted to upper-case).
<use_nguardrail phys="clm5_0" use_cn=".true." >.true.</use_nguardrail>

<ncrit phys="clm5_0" use_cn=".true.">1.d-9</ncrit>
<ncrit phys="clm4_5" use_cn=".true.">1.d-8</ncrit>
<cnegcrit phys="clm5_0" use_cn=".true.">-6.d+1</cnegcrit>
<nnegcrit phys="clm5_0" use_cn=".true.">-6.d+0</nnegcrit>
<cnegcrit phys="clm4_5" use_cn=".true.">-6.d+2</cnegcrit>
Expand Down

0 comments on commit 0e6557b

Please sign in to comment.