From 9dca7d8055df420de9d1c27efe87ee5476794edb Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Tue, 29 Jun 2021 10:44:13 +0200 Subject: [PATCH] not needed --- python/damask/_grid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/damask/_grid.py b/python/damask/_grid.py index c8ce2517a..be490fc29 100644 --- a/python/damask/_grid.py +++ b/python/damask/_grid.py @@ -413,7 +413,7 @@ class Grid: coords = grid_filters.coordinates0_point(cells,size).reshape(-1,3) pool = mp.Pool(int(os.environ.get('OMP_NUM_THREADS',4))) - result = pool.map_async(partial(Grid._find_closest_seed,seeds_p,weights_p), [coord for coord in coords]) + result = pool.map_async(partial(Grid._find_closest_seed,seeds_p,weights_p), coords) pool.close() pool.join() material_ = np.array(result.get())