From de497e21c3c9fa293e42458d60a1de980b2efbe2 Mon Sep 17 00:00:00 2001 From: Lizzie Lundgren Date: Fri, 13 Oct 2023 11:33:36 -0600 Subject: [PATCH] Add call in case_setup to run cam python script This update is based on existing code for cism but uses a python script rather than a shell script. The update is needed for use with GEOS-Chem chemistry so that run-time configuration files can be copied to the case directory upon case setup. Signed-off-by: Lizzie Lundgren --- CIME/case/case_setup.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CIME/case/case_setup.py b/CIME/case/case_setup.py index 363e8f4fab4..ce10057cb64 100644 --- a/CIME/case/case_setup.py +++ b/CIME/case/case_setup.py @@ -404,6 +404,13 @@ def _case_setup_impl( run_cmd_no_fail( "{}/cime_config/cism.template {}".format(glcroot, caseroot) ) + if comp == "cam": + camroot = case.get_value("COMP_ROOT_DIR_ATM") + camoptions = case.get_value("CAM_CONFIG_OPTS") + logger.debug("Running cam.case_setup.py") + run_cmd_no_fail( + "python {}/cime_config/cam.case_setup.py {} {} \"{}\"".format(camroot, caseroot, camroot, camoptions) + ) _build_usernl_files(case, "drv", "cpl")