caught exception when we search too long for points, and changed the myname variable to be hostname+pid
This commit is contained in:
parent
9ba591bbfd
commit
6874e95cfe
@ -27,8 +27,12 @@ def work(inq, outq, g, myname):
|
|||||||
if i == None:
|
if i == None:
|
||||||
shutdown = o
|
shutdown = o
|
||||||
return shutdown
|
return shutdown
|
||||||
|
try:
|
||||||
a = g.run_baker(X, order = o, extra_points = e)
|
a = g.run_baker(X, order = o, extra_points = e)
|
||||||
outq.put((i, myname, a['qlin'], a['error'], a['final'], exact(X)))
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user