Skip to content

Commit

Permalink
Merge pull request #4604 from lizziel/bugfix/path_to_cam_case_setup_s…
Browse files Browse the repository at this point in the history
…cript

Fix bug in path to CAM script cam.case_setup.py
  • Loading branch information
jedwards4b authored Apr 3, 2024
2 parents 33de328 + 5dbce34 commit adebed5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CIME/case/case_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,10 @@ def _case_setup_impl(
)
if comp == "cam":
camroot = case.get_value("COMP_ROOT_DIR_ATM")
if os.path.exists(os.path.join(camroot, "cam.case_setup.py")):
logger.debug("Running cam.case_setup.py")
if os.path.exists(
os.path.join(camroot, "cime_config/cam.case_setup.py")
):
logger.info("Running cam.case_setup.py")
run_cmd_no_fail(
"python {cam}/cime_config/cam.case_setup.py {cam} {case}".format(
cam=camroot, case=caseroot
Expand Down

0 comments on commit adebed5

Please sign in to comment.