Skip to content

Commit

Permalink
Do not allow -namelist to be part of CLM_BLDNML_OPTS in buildnml, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ekluzek committed Nov 9, 2021
1 parent 845dbe5 commit c321c20
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ def buildnml(case, caseroot, compname):
mask = case.get_value("MASK_GRID")
driver = case.get_value("COMP_INTERFACE").lower()

# -----------------------------------------------------
# Error checking
# -----------------------------------------------------
if ( clm_bldnml_opts.find("-namelist") >= 0 ):
expect(False, "The -namelist option is NOT allowed to be part of CLM_BLDNML_OPTS, " + \
"use the CLM_NAMELIST_OPTS option or add namelist items to user_nl_clm instead " );

# -----------------------------------------------------
# Set ctsmconf
# -----------------------------------------------------
Expand Down

0 comments on commit c321c20

Please sign in to comment.