Skip to content

Commit

Permalink
clean up debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Aug 15, 2016
1 parent 5b514cc commit de9c59d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion utils/python/CIME/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,11 +828,13 @@ def create_clone(self, newcase, keepexe=False, mach_dir=None, project=None):
if newcase_cimeroot != clone_cimeroot:
logger.warning(" case CIMEROOT is %s " %newcase_cimeroot)
logger.warning(" clone CIMEROOT is %s " %clone_cimeroot)
logger.warning(" It is NOT recommended to clone cases from different versions of CIMEROOT")
logger.warning(" It is NOT recommended to clone cases from different versions of CIME.")


# *** create case object as deepcopy of clone object ***
srcroot = os.path.join(newcase_cimeroot,"..")
newcase = self.copy(newcasename, newcaseroot, newsrcroot=srcroot)
newcase.set_value("CIMEROOT", newcase_cimeroot)

# determine if will use clone executable or not
if keepexe:
Expand Down
4 changes: 2 additions & 2 deletions utils/python/CIME/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def expect(condition, error_msg, exc_type=SystemExit):
"""
if (not condition):
# Uncomment these to bring up a debugger when an expect fails
import pdb
pdb.set_trace()
#import pdb
#pdb.set_trace()
raise exc_type("ERROR: %s" % error_msg)

# Should only be called from get_cime_config()
Expand Down

0 comments on commit de9c59d

Please sign in to comment.