ESCOMP / ESCOMP/CTSM

Trouble with drv_flds_in namelists for some CAM cases using ctsm5.2.027

Open
#2,740 6 comments 0 reactions 1 assignee Claimed by @ekluzek View on GitHub
bug external priority: low usability
Dominant language
Fortran
Stars
352
Forks
361
Avg merge
6d 6h
Merged PRs (30d)
8

Description

### Brief summary of bug

Some compsets with CAM and CLM versions other than CAM7*CLM60 fail with a namelist error in the drv_flds_in namelist.

### General bug information

**CTSM version you are using:** ctsm5.2.027
**Does this bug cause significantly incorrect results in the model's science?** No

**Configurations affected:** With CAM compsets other than CAM7 with CLM60

### Details of bug

An example test that fails is:

SMS_D_Ln9.f19_f19_mg17.FWma2000climo.derecho_intel.cam-outfrq9s_waccm_ma_mam4

### Important details of your setup / configuration so we can reproduce the bug

Originally discussed by @fvitt here:

[/glade/work/fvitt/camdev/dust_emissions](https://github.com/ESCOMP/CAM/pull/1104#issuecomment-2329060522)

Which includes the entire lists of tests that fail.

### Important output or errors that show the problem

```
Create namelist for component clm
Calling /glade/work/fvitt/camdev/dust_emissions/components/clm//cime_config/buildnml
ERROR: Command /glade/work/fvitt/camdev/dust_emissions/components/clm/bld/build-namelist failed rc=255
out=
err=ERROR : CLM build-namelist::CLMBuildNamelist::process_namelist_infile() : Invalid namelist variable in '-infile' /glade/derecho/scratch/fvitt/aux_cam_intel_20240903232235/ERP_Ld3.f09_f09_mg17.FWHIST.derecho_intel.cam-reduced_hist1d.GC.aux_cam_intel_20240903232235/Buildconf/camconf/drv_flds_in.
ERROR: in _validate_pair (package Build::NamelistDefinition): Variable name ndep_list not found in /glade/work/fvitt/camdev/dust_emissions/components/clm/bld/namelist_files/namelist_definition_drv.xml, /glade/work/fvitt/camdev/dust_emissions/components/clm/bld/namelist_files/namelist_definition_drv_flds.xml, /glade/work/fvitt/camdev/dust_emissions/components/clm/bld/namelist_files/namelist_definition_ctsm.xml'
File "/glade/work/fvitt/camdev/dust_emissions/cime/CIME/test_scheduler.py", line 1125, in _run_catch_exceptions
return run(test)
File "/glade/work/fvitt/camdev/dust_emissions/cime/CIME/test_scheduler.py", line 1014, in _setup_phase
expect(
File "/glade/work/fvitt/camdev/dust_emissions/cime/CIME/utils.py", line 176, in expect
raise exc_type(msg)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.