-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More early resolve issues #398
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,9 +27,9 @@ def __init__(self, infile=None, files=None, machine=None): | |
if infile is None: | ||
if files is None: | ||
files = Files() | ||
infile = files.get_value("MACHINES_SPEC_FILE") | ||
infile = files.get_value("MACHINES_SPEC_FILE", resolved=False) | ||
self.machines_dir = os.path.dirname(infile) | ||
|
||
infile = files.get_resolved_value(infile) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't understand this change. Why is calling get_resolved_value by hand better than resolved=True? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I want self.machines_dir to have the unresolved value |
||
GenericXML.__init__(self, infile) | ||
|
||
# Append the contents of $HOME/.cime/config_machines.xml if it exists | ||
|
@@ -340,7 +340,7 @@ def get_full_mpirun(self, check_members, case, job): | |
batch_system = self.get_value("BATCH_SYSTEM") | ||
if batch_system == "cobalt": | ||
mpi_arg_string += " : " | ||
|
||
return "%s %s %s" % (executable if executable is not None else "", mpi_arg_string, default_run_suffix) | ||
|
||
def print_values(self): | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You probably didn't intend to push this. |
||
pdb.set_trace() | ||
raise exc_type("ERROR: %s" % error_msg) | ||
|
||
# Should only be called from get_cime_config() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used anyplace as far as i can tell.