diff --git a/CIME/case/case_clone.py b/CIME/case/case_clone.py index 7b81e0e91b5..eeda3885f78 100644 --- a/CIME/case/case_clone.py +++ b/CIME/case/case_clone.py @@ -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: