Skip to content

Commit

Permalink
Merge pull request #4731 from jedwards4b/SRCROOT_clone_correction
Browse files Browse the repository at this point in the history
correct the SRCROOT path when using create_clone
  • Loading branch information
jedwards4b authored Jan 8, 2025
2 parents cdf76d6 + 58f9118 commit addf9e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CIME/case/case_clone.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ def create_clone(
if os.path.isdir(os.path.join(newcase_cimeroot, "share")) and get_model() == "cesm":
srcroot = newcase_cimeroot
else:
srcroot = self.get_value("SRCROOT")
if not srcroot:
srcroot = os.path.join(newcase_cimeroot, "..")
srcroot = os.path.join(newcase_cimeroot, "..")
if not os.path.isdir(srcroot):
srcroot = self.get_value("SRCROOT")

newcase = self.copy(newcasename, newcaseroot, newsrcroot=srcroot)
with newcase:
Expand Down

0 comments on commit addf9e6

Please sign in to comment.