Skip to content

Commit

Permalink
Merge pull request #1237 from jedwards4b/jpe_fix_atm_simple_settings
Browse files Browse the repository at this point in the history
no longer need this code
Driver code no longer needs to do this for cam

Test suite: scripts_regression_tests.py + ERP_D_Ln9.T42z30_T42.FDABIP04.hobart_nag.cam-outfrq9s
Test baseline:
Test namelist changes:
Test status: bit for bit

Fixes #1222

User interface changes?:

Code review: @gold2718
  • Loading branch information
jedwards4b authored Mar 15, 2017
2 parents ffa61ea + a18cdf4 commit 5f3072c
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/drivers/mct/cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -287,15 +287,12 @@ def buildnml(case, caseroot, component):

# create cplconf/namelist
infile_text = ""
if case.get_value('COMP_ATM') == 'cam':
# cam is actually changing the driver namelist settings
cam_config_opts = case.get_value("CAM_CONFIG_OPTS")
if "adiabatic" in cam_config_opts:
infile_text = "atm_adiabatic = .true."
if "ideal" in cam_config_opts:
infile_text = "atm_ideal_phys = .true."
if "aquaplanet" in cam_config_opts:
if case.get_value('COMP_ATM') == 'cam':
# cam is actually changing the driver namelist settings
cam_config_opts = case.get_value("CAM_CONFIG_OPTS")
if "aquaplanet" in cam_config_opts:
infile_text = "aqua_planet = .true. \n aqua_planet_sst = 1"

user_nl_file = os.path.join(caseroot, "user_nl_cpl")
namelist_infile = os.path.join(confdir, "namelist_infile")
create_namelist_infile(case, user_nl_file, namelist_infile, infile_text)
Expand Down

0 comments on commit 5f3072c

Please sign in to comment.