Skip to content

Commit

Permalink
Fix bug in path to CAM script cam.case_setup.py
Browse files Browse the repository at this point in the history
Just prior to the cime6.0.217 tag there was a change in the original code
to call cam.case_setup.py during case setup. The change added a
conditional for file path existence, but the file path added was incorrect.
This causes the script to never be called and GEOS-Chem compsets will
subsequently all fail.

Signed-off-by: Lizzie Lundgren <[email protected]>
  • Loading branch information
lizziel committed Mar 22, 2024
1 parent e0ca810 commit fde0e2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CIME/case/case_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,8 @@ 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 fde0e2f

Please sign in to comment.