Skip to content

Commit

Permalink
Merge pull request #4497 from lizziel/case_setup_commands_for_cam
Browse files Browse the repository at this point in the history
Add call in case_setup to run CAM python script
  • Loading branch information
jedwards4b authored Nov 6, 2023
2 parents 403680a + 627a3bc commit dab95c1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CIME/case/case_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

logger = logging.getLogger(__name__)


###############################################################################
def _build_usernl_files(case, model, comp):
###############################################################################
Expand Down Expand Up @@ -421,6 +422,14 @@ 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")
logger.debug("Running cam.case_setup.py")
run_cmd_no_fail(
"python {cam}/cime_config/cam.case_setup.py {cam} {case}".format(
cam=camroot, case=caseroot
)
)

_build_usernl_files(case, "drv", "cpl")

Expand Down

0 comments on commit dab95c1

Please sign in to comment.