From 149d9e46488618ca92378508b327ffd59da1b456 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 shell script This update is based on existing code for cism. 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..6902183a3cd 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") + run_cmd_no_fail( + "{}/cime_config/cam.case_setup {} {} \"{}\"".format(camroot, caseroot, camroot, camoptions) + ) _build_usernl_files(case, "drv", "cpl")