Skip to content

Commit

Permalink
Merge pull request #1981 from jedwards4b/resolve_compset_issue
Browse files Browse the repository at this point in the history
Resolve compset issue

A subtle bug fix - the discovery of compsets needs to have information about available components so that it can look in the correct cime_config directories for config_compsets.xml files.

Test suite: scripts_regression_tests.py + cesm F cases
Test baseline:
Test namelist changes:
Test status: bit for bit
Fixes

User interface changes?:

Update gh-pages html (Y/N)?:

Code review:
  • Loading branch information
jgfouca authored Oct 25, 2017
2 parents bcd5736 + 3046a63 commit d7a15a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ def write_drv_flds_in_file(case, nmlgen, files):

# Now create drv_flds_in
config = {}
definition_file = [files.get_value("NAMELIST_DEFINITION_FILE", attribute={"component":"drv_flds"})]
definition_dir = os.path.dirname(files.get_value("NAMELIST_DEFINITION_FILE", attribute={"component":"drv"}))
definition_file = [os.path.join(definition_dir, "namelist_definition_drv_flds.xml")]
nmlgen = NamelistGenerator(case, definition_file, files=files)
skip_entry_loop = True
nmlgen.init_defaults(infiles, config, skip_entry_loop=skip_entry_loop)
Expand All @@ -296,7 +297,8 @@ def _create_component_modelio_namelists(case, files):

# will need to create a new namelist generator
infiles = []
definition_file = [files.get_value("NAMELIST_DEFINITION_FILE", attribute={"component":"modelio"})]
definition_dir = os.path.dirname(files.get_value("NAMELIST_DEFINITION_FILE", attribute={"component":"drv"}))
definition_file = [os.path.join(definition_dir, "namelist_definition_modelio.xml")]

confdir = os.path.join(case.get_value("CASEBUILD"), "cplconf")
lid = os.environ["LID"] if "LID" in os.environ else get_timestamp("%y%m%d-%H%M%S")
Expand Down
2 changes: 1 addition & 1 deletion cime_config/config_archive.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<components version="2.0">
<comp_archive_spec compname="cpl" compclass="cpl">
<comp_archive_spec compname="drv" compclass="cpl">
<rest_file_extension>\.r\..*</rest_file_extension>
<hist_file_extension>\.h.*.nc$</hist_file_extension>
<rest_history_varname>unset</rest_history_varname>
Expand Down

0 comments on commit d7a15a4

Please sign in to comment.