From 5e1343f1c16ab6cc250448acf33f26ad5113306f Mon Sep 17 00:00:00 2001 From: Kuan-Chih Wang Date: Fri, 29 Dec 2023 18:21:15 -0700 Subject: [PATCH] Include path to stub interface for building Also correct typos. --- cime_config/cam_config.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cime_config/cam_config.py b/cime_config/cam_config.py index 8b35faa8..2e2458f1 100644 --- a/cime_config/cam_config.py +++ b/cime_config/cam_config.py @@ -310,7 +310,7 @@ def __init__(self, case, case_log): "src/dynamics, with a slash ('/') indicating directory hierarchy."] - #Determine dynmaical core and grid-matching regex to use for validation: + #Determine dynamical core and grid-matching regex to use for validation: dycore, grid_regex = get_atm_hgrid(atm_grid) #Add dynamical core to config object: @@ -370,6 +370,11 @@ def __init__(self, case, case_log): self.create_config("trm", trm_desc, 1, (1, None)) self.create_config("trn", trn_desc, 1, (1, None)) self.create_config("trk", trk_desc, 1, (1, None)) + elif dycore == "mpas": + # This only includes the driver and interface code between CAM-SIMA and MPAS dynamical core. + # MPAS dynamical core relies on its upstream build infrastructure for compilation instead of CIME to take advantage of future upstream changes automatically. + self.create_config("dyn_src_dirs", dyn_dirs_desc, ["mpas"], + valid_list_type="str") elif dycore == "none": # Source code directories self.create_config("dyn_src_dirs", dyn_dirs_desc, ["none"], @@ -865,7 +870,7 @@ def generate_cam_src(self, gen_fort_indent): capgen_db, ic_names) #Add registry path to config object: - init_dir_desc = "Location of auto-generated physics initilazation code." + init_dir_desc = "Location of auto-generated physics initialization code." self.create_config("init_dir", init_dir_desc, init_dir) #--------------------------------------------------------------