Skip to content

Commit

Permalink
Fix for ESCOMP#14 (coldstart) and ESCOMP#15 (mosart used in files)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekluzek committed Jun 28, 2019
1 parent cd4d6f9 commit 8dd1404
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cime_config/buildlib
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
"""
Build the mosart component library
Build the rtm component library
"""
#pylint: disable=unused-wildcard-import, wildcard-import, multiple-imports
#pylint: disable=wrong-import-position, invalid-name, too-many-locals
Expand Down
6 changes: 4 additions & 2 deletions cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ def _create_namelists(case, confdir, inst_string, infile, nmlgen, data_list_path
nmlgen.add_default("finidat_rtm", value=filename, ignore_abs_path=True)
else:
nmlgen.add_default("nrevsn_rtm", value=filename)
elif nmlgen.get_value("finidat_rtm").strip() == '':
nmlgen.set_value('finidat_rtm', value=' ')
else:
if nmlgen.get_default('finidat_rtm') == 'UNSET':
nmlgen.add_default('finidat_rtm', value='', ignore_abs_path=True)
nmlgen.add_default('finidat_rtm', value=' ', ignore_abs_path=True)
else:
nmlgen.add_default("finidat_rtm")

Expand Down Expand Up @@ -159,7 +161,7 @@ def buildnml(case, caseroot, compname):
#----------------------------------------------------
# Clear out old data.
#----------------------------------------------------
data_list_path = os.path.join(case.get_case_root(), "Buildconf", "mosart.input_data_list")
data_list_path = os.path.join(case.get_case_root(), "Buildconf", "rtm.input_data_list")
if os.path.exists(data_list_path):
os.remove(data_list_path)
#----------------------------------------------------
Expand Down

0 comments on commit 8dd1404

Please sign in to comment.