Skip to content

Commit

Permalink
correct the SRCROOT path when using create_clone, should be new SRCRO…
Browse files Browse the repository at this point in the history
…OT not the old one
  • Loading branch information
jedwards4b committed Jan 8, 2025
1 parent cdf76d6 commit 58f9118
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 58f9118

Please sign in to comment.