Skip to content

Bug: hillslope_fsat_equals_zero is .false. when use_hillslope = .true. #4030

@slevis-lmwg

Description

@slevis-lmwg

Brief summary of bug

This line in CLMBuildNamelist.pm does not behave as intended:
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'hillslope_fsat_equals_zero', 'use_hillslope'=>$nl_flags->{'use_hillslope'} );

General bug information

CTSM version you are using: ctsm5.4.039

Does this bug cause significantly incorrect results in the model's science? Maybe

Configurations affected: use_hillslope = .true.

Details of bug

I was encountering the same problem in #4029 when trying to pick up a different paramfile for hillslope hydrology. I appear to have solved it by changing the nl_flags to get_value as follows:

add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'paramfile',
              'phys'=>$nl_flags->{'phys'},
              'use_hillslope'=>$nl->get_value('use_hillslope'),
              'lnd_tuning_mode'=>$nl_flags->{'lnd_tuning_mode'},
              'use_flexibleCN'=>$nl_flags->{'use_flexibleCN'} );

Metadata

Metadata

Assignees

Labels

bugsomething is working incorrectlyscienceEnhancement to or bug impacting science

Type

No fields configured for Bug.

Projects

Status

In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions