From 5dbce34d03410cec3c2fe5de24ff94d88319479f Mon Sep 17 00:00:00 2001 From: Lizzie Lundgren Date: Thu, 21 Mar 2024 09:30:49 -0600 Subject: [PATCH] Fix bug in path to CAM script cam.case_setup.py 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 --- CIME/case/case_setup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CIME/case/case_setup.py b/CIME/case/case_setup.py index a170d1bfddd..730a9911452 100644 --- a/CIME/case/case_setup.py +++ b/CIME/case/case_setup.py @@ -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