Skip to content

Commit

Permalink
Add call in case_setup to run cam python script
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
lizziel committed Oct 13, 2023
1 parent c6a6971 commit de497e2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CIME/case/case_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit de497e2

Please sign in to comment.