only deal with a bunch of points

This commit is contained in:
Stephen McQuay 2011-05-18 14:30:40 -06:00
parent 8a74f26619
commit aa7935a7a1

View File

@ -40,10 +40,10 @@ if __name__ == '__main__':
dest_verts = pickle.load(open(dest_verts, 'r')) dest_verts = pickle.load(open(dest_verts, 'r'))
orders = [2,3,4,5] orders = [2,3,4,5]
extras = [4,6,8,12,16,20,32,48,64,96,128,192,256] extras = [4,6,8,12, 16,20,32,48, 64,96,128,192, 256]
count = len(orders) * len(extras) * sum((len(i) for i in dest_verts)) count = len(orders) * len(extras) * len(dest_verts)
results = [None] * count results = [None] * count
# results = [id, order, extra, X, qlin, err, final, exact, time] # results = [id, order, extra, X, qlin, err, final, exact, time]
@ -80,13 +80,12 @@ if __name__ == '__main__':
i = 0 i = 0
for order in orders: for order in orders:
for extra in extras: for extra in extras:
for d in dest_verts: for X in dest_verts:
for X in d: cur_job = (i, order, extra, X)
cur_job = (i, order, extra, X) results[i] = [ order, extra, X]
results[i] = [ order, extra, X] tasksq.put(cur_job)
tasksq.put(cur_job) i+=1
i+=1 pbar.update(i)
pbar.update(i)
submit_end = time.time() submit_end = time.time()
pbar.finish() pbar.finish()