Skip to content

Commit

Permalink
Merge pull request #1663 from jedwards4b/comp_interface_fix
Browse files Browse the repository at this point in the history
Remove COMP_INTERFACE references to esmf and downcase the value.

Test suite: scripts_regression_tests.py, SMS_D.f19_f19.F1850.cori-knl_intel
Test baseline:
Test namelist changes:
Test status: bit for bit

Fixes

User interface changes?:

Code review:
  • Loading branch information
fischer-ncar authored Jun 8, 2017
2 parents f8f6221 + 3115d84 commit aadee35
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 13 deletions.
1 change: 0 additions & 1 deletion config/acme/machines/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ else
endif
endif

COMP_INTERFACE := $(shell echo $(COMP_INTERFACE) | tr A-Z a-z)
#===============================================================================
# Set include paths (needed after override for any model specific builds below)
#===============================================================================
Expand Down
2 changes: 0 additions & 2 deletions config/cesm/machines/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ ifeq ($(USE_ESMF_LIB), TRUE)
CPPDEFS += -DUSE_ESMF_LIB
endif

COMP_INTERFACE := $(shell echo $(COMP_INTERFACE) | tr A-Z a-z)

ifeq ($(strip $(MPILIB)),mpi-serial)
CPPDEFS += -DNO_MPI2
else
Expand Down
7 changes: 1 addition & 6 deletions scripts/lib/CIME/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def _build_checks(case, build_threaded, comp_interface, use_esmf_lib,
ninst_value = case.get_value("NINST_VALUE")
smp_build = case.get_value("SMP_BUILD")
build_status = case.get_value("BUILD_STATUS")
expect(comp_interface == "mct", "Only supporting mct comp_interface at this time")

smpstr = ""
inststr = ""
Expand Down Expand Up @@ -189,12 +190,6 @@ def _build_checks(case, build_threaded, comp_interface, use_esmf_lib,
./case.build --clean-all
""")

expect(comp_interface != "ESMF" or use_esmf_lib,
"""
ERROR COMP_INTERFACE IS ESMF BUT USE_ESMF_LIB IS NOT TRUE
SET USE_ESMF_LIB to TRUE with:
./xmlchange -file env_build.xml -id USE_ESMF_LIB -value TRUE
""")

expect(mpilib != "mpi-serial" or not use_esmf_lib,
"""
Expand Down
2 changes: 0 additions & 2 deletions scripts/lib/CIME/test_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,9 +484,7 @@ def _xml_phase(self, test):

elif opt == 'E':
envtest.set_test_parameter("USE_ESMF_LIB", "TRUE")
envtest.set_test_parameter("COMP_INTERFACE", "ESMF")
logger.debug (" USE_ESMF_LIB set to TRUE")
logger.debug (" COMP_INTERFACE set to ESMF")

elif opt == 'CG':
envtest.set_test_parameter("CALENDAR", "GREGORIAN")
Expand Down
4 changes: 2 additions & 2 deletions src/drivers/mct/cime_config/config_component.xml
Original file line number Diff line number Diff line change
Expand Up @@ -701,8 +701,8 @@

<entry id="COMP_INTERFACE">
<type>char</type>
<valid_values>MCT</valid_values>
<default_value>MCT</default_value>
<valid_values>mct</valid_values>
<default_value>mct</default_value>
<group>build_def</group>
<file>env_build.xml</file>
<desc>use MCT component interface</desc>
Expand Down

0 comments on commit aadee35

Please sign in to comment.