Commit 8922a8da authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Add option to node_list to print vtop mapping.

parent 9db0e590
......@@ -490,7 +490,7 @@ class node_list:
def apply(self):
try:
opts, req_args = getopt.getopt(self.argv, "pvhe:", [ "help" ]);
opts, req_args = getopt.getopt(self.argv, "pvhme:", [ "help" ]);
pass
except getopt.error, e:
print e.args[0]
......@@ -515,6 +515,9 @@ class node_list:
elif opt == "-h":
which = "pphys";
pass
elif opt == "-m":
which = "mapping";
pass
elif opt == "-e":
pid,eid = string.split(val, ",")
params["proj"] = pid;
......@@ -543,6 +546,9 @@ class node_list:
elif which == "pphys":
print val["pnode"], " ",
pass
elif which == "mapping":
print "%s=%s" % (node, val["pnode"]),
pass
pass
print "";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment