312312
313313 # `each_cell_index(cell_list)` might return a `KeySet`, which has to be `collect`ed
314314 # first to be able to be used in a threaded loop. This function takes care of that.
315- @threaded parallelization_backend for cell_index in each_cell_index_threadable (cell_list)
315+ @threaded parallelization_backend for cell_index in
316+ each_cell_index_threadable (cell_list)
316317 mark_changed_cell! (neighborhood_search, cell_index, y)
317318 end
318319end
@@ -360,12 +361,13 @@ function update_grid!(neighborhood_search::GridNeighborhoodSearch{<:Any,
360361 # We can work around this by using the old lengths.
361362 # TODO this is hardcoded for the `FullGridCellList`
362363 @threaded parallelization_backend for i in eachindex (update_buffer,
363- cell_list. cells. lengths)
364+ cell_list. cells. lengths)
364365 update_buffer[i] = cell_list. cells. lengths[i]
365366 end
366367
367368 # Add points to new cells
368- @threaded parallelization_backend for cell_index in each_cell_index_threadable (cell_list)
369+ @threaded parallelization_backend for cell_index in
370+ each_cell_index_threadable (cell_list)
369371 for i in 1 : update_buffer[cell_index]
370372 point = cell_list. cells. backend[i, cell_index]
371373 point_coords = extract_svector (y, Val (ndims (neighborhood_search)), point)
@@ -379,7 +381,8 @@ function update_grid!(neighborhood_search::GridNeighborhoodSearch{<:Any,
379381 end
380382
381383 # Remove points from old cells
382- @threaded parallelization_backend for cell_index in each_cell_index_threadable (cell_list)
384+ @threaded parallelization_backend for cell_index in
385+ each_cell_index_threadable (cell_list)
383386 points = cell_list[cell_index]
384387
385388 # WARNING!!!
433436 pos_diff = point_coords - neighbor_coords
434437 distance2 = dot (pos_diff, pos_diff)
435438
436- pos_diff, distance2 = compute_periodic_distance (pos_diff, distance2,
437- search_radius, periodic_box)
439+ pos_diff,
440+ distance2 = compute_periodic_distance (pos_diff, distance2,
441+ search_radius, periodic_box)
438442
439443 if distance2 <= search_radius^ 2
440444 distance = sqrt (distance2)
0 commit comments