caught exception when we search too long for points, and changed the myname variable to be hostname+pid

This commit is contained in:
smcquay 2011-03-31 20:26:22 -06:00
parent 9ba591bbfd
commit 6874e95cfe

View File

@ -27,8 +27,12 @@ def work(inq, outq, g, myname):
if i == None: if i == None:
shutdown = o shutdown = o
return shutdown return shutdown
a = g.run_baker(X, order = o, extra_points = e) try:
outq.put((i, myname, a['qlin'], a['error'], a['final'], exact(X))) a = g.run_baker(X, order = o, extra_points = e)
outq.put((i, myname, a['qlin'], a['error'], a['final'], exact(X)))
except Exception as e:
print X, e
outq.put((i, myname, 0.0, 0.0, 0.0, 0.0))
if __name__ == '__main__': if __name__ == '__main__':
@ -59,7 +63,7 @@ if __name__ == '__main__':
g = ggrid(input_file) g = ggrid(input_file)
g.q = np.array([exact(x) for x in g.verts]) g.q = np.array([exact(x) for x in g.verts])
myname = options.label myname = "%s-%d" % os.uname()[1], os.getpid())
shutdown = False shutdown = False
while not shutdown: while not shutdown: